apostrophecms / apostrophecms/apostrophe

New install can not start the server : Dependency resoltion error

Open
#4,654 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
4.6k
Forks
650
Avg merge
19h 21m
Merged PRs (30d)
23

Description

New install.
Can't start the server

```
[nodemon] 3.1.4
[nodemon] reading config .\package.json
[nodemon] to restart at any time, enter `rs`
[nodemon] or send SIGHUP to 19252 to restart
[nodemon] ignoring: .git **/ui/apos/**/* **/ui/src/**/* **/ui/public/**/* locales/*.json .\public\uploads/**/* public/apos-frontend/*.js .\data/**/*
[nodemon] watching path(s): app.js modules\**\* lib\**\*.js views\**\*.html
[nodemon] watching extensions: json,js,html,scss,vue
[nodemon] starting `node app.js`
[nodemon] forking
[nodemon] child pid: 17220
[nodemon] watching 13 files
🧑‍💻 Building the Public-facing modern JavaScript and Sass...
asset src-build.js 3.36 KiB [emitted] (name: src-build) 1 related asset
cached modules 274 bytes [cached] 1 module
./apos-build/default/src-import.js 1.06 KiB [built]

ERROR in ./apos-build/default/src-import.js 15:5-105
Module not found: Error: Can't resolve 'node_modules\apostrophe\modules\@apostrophecms\util\ui\src\index.js' in 'D:\Workspace\Apox\apos-esse\apos-build\default'
Did you miss the leading dot in 'resolve.extensions'? Did you mean '[".*",".js"]' instead of '["*",".js"]'?

ERROR in ./apos-build/default/src-import.js 18:0-105
Module not found: Error: Can't resolve 'node_modules\apostrophe\modules\@apostrophecms\admin-bar\ui\src\index.js' in 'D:\Workspace\Apox\apos-esse\apos-build\default'
Did you miss the leading dot in 'resolve.extensions'? Did you mean '[".*",".js"]' instead of '["*",".js"]'?

ERROR in ./apos-build/default/src-import.js 21:0-108
Module not found: Error: Can't resolve 'node_modules\apostrophe\modules\@apostrophecms\video-widget\ui\src\index.js' in 'D:\Workspace\Apox\apos-esse\apos-build\default'
Did you miss the leading dot in 'resolve.extensions'? Did you mean '[".*",".js"]' instead of '["*",".js"]'?

ERROR in ./apos-build/default/src-import.js 24:0-59
Module not found: Error: Can't resolve 'modules\asset\ui\src\index.js' in 'D:\Workspace\Apox\apos-esse\apos-build\default'
Did you miss the leading dot in 'resolve.extensions'? Did you mean '[".*",".js"]' instead of '["*",".js"]'?

ERROR in ./apos-build/default/src-import.js 28:0-117
Module not found: Error: Can't resolve 'node_modules\apostrophe\modules\@apostrophecms\image-widget\ui\src\index.scss' in 'D:\Workspace\Apox\apos-esse\apos-build\default'
Did you miss the leading dot in 'resolve.extensions'? Did you mean '[".*",".js"]' instead of '["*",".js"]'?

ERROR in ./apos-build/default/src-import.js 31:0-68
Module not found: Error: Can't resolve 'modules\asset\ui\src\index.scss' in 'D:\Workspace\Apox\apos-esse\apos-build\default'
Did you miss the leading dot in 'resolve.extensions'? Did you mean '[".*",".js"]' instead of '["*",".js"]'?

6 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.93.0 compiled with 6 errors in 175 ms
```

## To Reproduce

Step by step instructions to reproduce the behavior:

> 1. Make a new install with essential starter kit
> 2. Start the server

## Expected behavior
> Server started

## Describe the bug
> Errors

## Details

**Version of Node.js:**
*PLEASE NOTE: Only stable LTS versions (10.x and 12.x) are fully supported but we will do our best with newer versions.*
`v18.15.0`
**Server Operating System:**
*The server (which might be your dev laptop) on which Apostrophe is running. Linux? MacOS X? Windows? Is Docker involved?*
`Édition Windows 11 Professionnel
Version 21H2
Installé le ‎08-‎09-‎22
Build du système d’exploitation 22000.2538
Expérience Pack d’expérience de fonctionnalités Windows 1000.22001.1000.0
`
**Additional context:**
> Add any other context about the problem here. If the problem is specific to a browser, OS or mobile device, specify which.

**Screenshots**
*If applicable, add screenshots to help explain your problem.*

Contributor guide

Open the contributing guide

Research direction

Reproduce with a new essential starter kit install on Windows 11 using Node.js v18.15.0, then start the server with `node app.js` or the project’s normal command. Inspect `apos-build/default/src-import.js` and the webpack output for the six unresolved paths; done means the public-facing JavaScript and Sass build completes and the server starts without these errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, webpack
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.