Build Error: could not find app javascript in index.html
See original GitHub issueIn Ghost we have a requirement to publish both development and production html/js/css files in a single package so we have a setup that generates files with different names and custom {{content-for}}
hooks for inserting the right <script>
and <link>
tags.
Following the setup instructions in the readme, for a development build I see the following error:
>> Build Error (WaitForTrees)
>> could not find app javascript in index.html
>> Stack Trace and Error Report: /var/folders/30/3l01y1ld18l598kxr5srm7kr0000gn/T/error.dump.4359fa193c0e4e77c12dd665e1725452.log
Stack Trace and Error Report
=================================================================================
ENV Summary:
TIME: Fri Apr 26 2019 08:54:16 GMT+0200 (Central European Summer Time)
TITLE: ember
ARGV:
- /Users/kevinansfield/.nvm/versions/node/v10.15.1/bin/node
- /Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/.bin/ember
- serve
- --live-reload-base-url=/ghost/
- --live-reload-port=4201
EXEC_PATH: /Users/kevinansfield/.nvm/versions/node/v10.15.1/bin/node
TMPDIR: /var/folders/30/3l01y1ld18l598kxr5srm7kr0000gn/T
SHELL: /usr/local/bin/zsh
PATH:
- /Users/kevinansfield/.nvm/versions/node/v10.15.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin
- /Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/.bin
- /Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/.bin
- /Users/kevinansfield/code/ghost/Ghost/core/node_modules/.bin
- /Users/kevinansfield/code/ghost/Ghost/node_modules/.bin
- /Users/kevinansfield/code/ghost/node_modules/.bin
- /Users/kevinansfield/code/node_modules/.bin
- /Users/kevinansfield/node_modules/.bin
- /Users/node_modules/.bin
- /node_modules/.bin
- /Users/kevinansfield/.nvm/versions/node/v10.15.1/bin
- /Users/kevinansfield/.rvm/gems/ruby-2.3.3/bin
- /Users/kevinansfield/.rvm/gems/ruby-2.3.3@global/bin
- /Users/kevinansfield/.rvm/rubies/ruby-2.3.3/bin
- /Users/kevinansfield/.yarn/bin
- /Users/kevinansfield/.nvm/versions/node/v10.15.1/bin
- /usr/local/opt/php@7.1/sbin
- /usr/local/opt/php@7.1/bin
- /usr/local/heroku/bin
- /Applications/Postgres.app/Contents/Versions/latest/bin
- /usr/local/bin
- /usr/local/sbin
- /usr/local/share/npm/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /usr/local/MacGPG2/bin
- /Users/kevinansfield/.rvm/bin
- /Users/kevinansfield/.composer/vendor/bin
PLATFORM: darwin x64
FREEMEM: 27926528
TOTALMEM: 17179869184
UPTIME: 1118791
LOADAVG: 5.68408203125,5.861328125,9.69091796875
CPUS:
- Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz - 2900
- Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz - 2900
- Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz - 2900
- Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz - 2900
ENDIANNESS: LE
VERSIONS:
- ares: 1.15.0
- cldr: 33.1
- http_parser: 2.8.0
- icu: 62.1
- modules: 64
- napi: 3
- nghttp2: 1.34.0
- node: 10.15.1
- openssl: 1.1.0j
- tz: 2018e
- unicode: 11.0
- uv: 1.23.2
- v8: 6.8.275.32-node.12
- zlib: 1.2.11
ERROR Summary:
- broccoliBuilderErrorStack: Error: could not find app javascript in index.html
at definitelyReplace (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/compat/src/compat-app.js:238:15)
at Object.prepare (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/compat/src/compat-app.js:119:37)
at new PreparedEmberHTML (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/ember-html.js:30:26)
at new ParsedEmberAsset (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/app.js:40:21)
at AppBuilder.prepareAsset (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/app.js:267:26)
at AppBuilder.prepareAssets (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/app.js:279:18)
at AppBuilder.updateAssets (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/app.js:347:27)
at AppBuilder.build (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/app.js:401:38)
at WaitForTrees.wait_for_trees_1.default [as buildHook] (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/build-stage.js:37:31)
at process._tickCallback (internal/process/next_tick.js:68:7)
- code: [undefined]
- codeFrame: could not find app javascript in index.html
- errorMessage: could not find app javascript in index.html
at WaitForTrees (@embroider/compat/app)
-~- created here: -~-
at new Plugin (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/broccoli-plugin/index.js:7:31)
at new WaitForTrees (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/wait-for-trees.js:30:9)
at CompatApp.get tree (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/build-stage.js:26:16)
at CompatApp.<anonymous> (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/typescript-memoize/dist/memoize-decorator.js:67:52)
at new PackagerRunner (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/to-broccoli-plugin.js:11:26)
at Object.defaultPipeline [as compatBuild] (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/compat/src/default-pipeline.js:30:12)
at module.exports (/Users/kevinansfield/code/ghost/Ghost/core/client/ember-cli-build.js:241:41)
at Builder.readBuildFile (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/ember-cli/lib/models/builder.js:52:14)
at Builder.setupBroccoliBuilder (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/ember-cli/lib/models/builder.js:66:22)
at new Builder (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/ember-cli/lib/models/builder.js:32:10)
-~- (end) -~-
- errorType: Build Error
- location:
- column: [undefined]
- file: [undefined]
- line: [undefined]
- treeDir: [undefined]
- message: could not find app javascript in index.html
at WaitForTrees (@embroider/compat/app)
-~- created here: -~-
at new Plugin (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/broccoli-plugin/index.js:7:31)
at new WaitForTrees (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/wait-for-trees.js:30:9)
at CompatApp.get tree (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/build-stage.js:26:16)
at CompatApp.<anonymous> (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/typescript-memoize/dist/memoize-decorator.js:67:52)
at new PackagerRunner (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/to-broccoli-plugin.js:11:26)
at Object.defaultPipeline [as compatBuild] (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/compat/src/default-pipeline.js:30:12)
at module.exports (/Users/kevinansfield/code/ghost/Ghost/core/client/ember-cli-build.js:241:41)
at Builder.readBuildFile (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/ember-cli/lib/models/builder.js:52:14)
at Builder.setupBroccoliBuilder (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/ember-cli/lib/models/builder.js:66:22)
at new Builder (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/ember-cli/lib/models/builder.js:32:10)
-~- (end) -~-
- name: BuildError
- nodeAnnotation: @embroider/compat/app
- nodeName: WaitForTrees
- originalErrorMessage: could not find app javascript in index.html
- stack: Error: could not find app javascript in index.html
at definitelyReplace (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/compat/src/compat-app.js:238:15)
at Object.prepare (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/compat/src/compat-app.js:119:37)
at new PreparedEmberHTML (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/ember-html.js:30:26)
at new ParsedEmberAsset (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/app.js:40:21)
at AppBuilder.prepareAsset (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/app.js:267:26)
at AppBuilder.prepareAssets (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/app.js:279:18)
at AppBuilder.updateAssets (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/app.js:347:27)
at AppBuilder.build (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/app.js:401:38)
at WaitForTrees.wait_for_trees_1.default [as buildHook] (/Users/kevinansfield/code/ghost/Ghost/core/client/node_modules/@embroider/core/src/build-stage.js:37:31)
at process._tickCallback (internal/process/next_tick.js:68:7)
=================================================================================
Is there some additional config needed in order to tell Embroider where to find the JS files?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Could not find a required file. Name: index.html - Stack Overflow
When I move my public folder into the client folder and run npm start I get "Can't find file. Name: index.html. Searched in...
Read more >could not find a required file. name: index.html searched in
Does your project have an index.html file in the public directory? If not you can get the one that Create React App uses...
Read more >Error: ENOENT: no such file or directory, stat '/opt/render ...
I have a next error: Error: ENOENT: no such file or directory, stat '/opt/render/project/src/client/build/index.html My code here: if ...
Read more >[Solved]-Could not find a required file. Name: index.html-Reactjs
Does your project have an index.html file in the public directory? If not you can get the one that Create React App uses...
Read more >Tutorial: Create a Node.js and React app in Visual Studio
JSX is a JavaScript syntax extension typically used with React to describe UI ... If you don't see the Blank Node.js Web Application...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lifeart this was a
git clone; yarn install; yarn compile
then linking of@embroider/{core,compat,webpack}
into my project. I’ve tried ayarn clean; yarn compile
just in case but still the same errorI’ve hit missing trailing slash issue with rootURL as well.