Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New project from npx makes fails #47

Closed
ivanbacher opened this issue Feb 15, 2021 · 2 comments
Closed

New project from npx makes fails #47

ivanbacher opened this issue Feb 15, 2021 · 2 comments
Assignees

Comments

@ivanbacher
Copy link
Contributor

OS: Mac OS 10.15.7
Node version: 15.6.0
NPM version: 7.5.2

npx makes aurelia

[makes] Using remote skeleton github:aurelia/new
[makes] Fetching tarball https://codeload.github.com/aurelia/new/tar.gz/master
Default ESNext Aurelia 2 App
npm install
npm start
➜ npm start

> [email protected] start
> webpack serve

「wds」: Project is running at http://localhost:9000/
「wds」: webpack output is served from /
「wds」: Content not from webpack is served from /Users/ivan/Desktop/test
「wds」: 404s will fallback to /index.html
「wdm」: wait until bundle finished: /

(node:29075) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
        Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
        Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
(Use `node --trace-deprecation ...` to show where the warning was created)

「wdm」: asset entry-bundle.js 3.09 MiB [emitted] (name: main)
asset index.html 532 bytes [emitted]
runtime modules 937 bytes 4 modules
modules by path ./node_modules/@aurelia/ 1.04 MiB 130 modules
modules by path ./src/ 1.89 KiB
  modules by path ./src/*.js 393 bytes 2 modules
  modules by path ./src/*.css 1.04 KiB
    ./src/my-app.css 398 bytes [built] [code generated]
    ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./src/my-app.css 664 bytes [built] [code generated]
  ./src/my-app.html 478 bytes [built] [code generated]
modules by path ./node_modules/css-loader/dist/runtime/*.js 3.78 KiB
  ./node_modules/css-loader/dist/runtime/cssWithMappingToString.js 2.21 KiB [built] [code generated]
  ./node_modules/css-loader/dist/runtime/api.js 1.57 KiB [built] [code generated]
./node_modules/aurelia/dist/esm/index.js 15.2 KiB [built] [code generated]
./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js 6.67 KiB [built] [code generated]

ERROR in   Error: The loader "/Users/ivan/Desktop/test/node_modules/html-webpack-plugin/lib/loader.js!/Users/ivan/Desktop/test/index.ejs" didn't return html.
  
  - index.js:336 HtmlWebpackPlugin.evaluateCompilationResult
    [test]/[html-webpack-plugin]/index.js:336:24
  
  - index.js:243 
    [test]/[html-webpack-plugin]/index.js:243:22
  
  - runMicrotasks
  
  - task_queues:94 processTicksAndRejections
    node:internal/process/task_queues:94:5
  
  - async Promise.all
  
  - async Promise.all
@3cp 3cp self-assigned this Feb 15, 2021
@3cp
Copy link
Member

3cp commented Feb 15, 2021

Confirm it's related to some breaking change in latest webpack 5.22.0.
You can bypass this issue for now with npm i -D [email protected].

The related issue: jantimon/html-webpack-plugin#1603

@3cp 3cp closed this as completed in f11a96f Feb 15, 2021
@3cp
Copy link
Member

3cp commented Feb 15, 2021

Update: not webpack 5.22.0, but upgrading html-webpack-plugin fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants