stencil-cli
stencil-cli copied to clipboard
Stencil bundle error - 'no such file'
Expected behavior
Theme to properly bundle.
Actual behavior
outputs the following errors:
ok -- Language Files Parsing Finished
ok -- Schema Translations Parsing Finished
ok -- Theme Schema Building Finished
ok -- SCSS Parsing Finished
ok -- Template Parsing Finished
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.0.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.1.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.10.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.11.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.12.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.13.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.14.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.15.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.16.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.17.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.2.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.3.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.4.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.8.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.chunk.9.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.head_async.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.main.js": no such file
Error parsing bundle asset "/Users/eyalchistik/Downloads/Dinovite+(11)-1.1.1/assets/dist/theme-bundle.polyfills.js": no such file
No bundles were parsed. Analyzer will show only original module sizes from stats file.
Steps to reproduce behavior
Download theme from admin.
cd in theme folder, run stencil init
, npm install
, and finally stencil bundle
Note
When running npm install
I get the following warnings
npm WARN [email protected] requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@>=1.3.0 <3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
I've tried all of the solutions offered here - https://stackoverflow.com/questions/46053414/npm-warn-requires-a-peer-of-but-none-is-installed-you-must-install-peer but it does not resolve the warning for me. Because of this, my inclination is that something either with the Node version or Webpack could be the cause.
System Information
macOS Catalina 10.15.7 Node 12.10.0 Stencil 3.1.0
@eyal352 Hello.
I suspect 2 possible reasons of the problems:
- There was a
stencil start
command running in the parallel withstencil bundle
which caused them interfering with each other. E.g.,stencil bundle
generated some new build files,stencil start
noticed changes in the directory and rebuilt the theme deleting old files,stencil bundle
couldn’t find the old files and yielded errors. - Some problems with the theme itself or its build configuration.
At the least, I can’t reproduce this bug in Cornerstone.