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

Build error on embroider: Could not find app javascript in index.html #27

Open
johanrd opened this issue May 26, 2021 · 1 comment
Open

Comments

@johanrd
Copy link

johanrd commented May 26, 2021

When building an app with embroider with ember-artisans, I get the following error:

Build Error (OneShot)

Unexpected character '' (Note that you need plugins to import files that are not JavaScript)
        at BroccoliRollup
-~- created here: -~-
    at new Plugin (/dir/node_modules/broccoli-rollup/node_modules/broccoli-plugin/index.js:31:32)
    at new BroccoliRollup (/dir/node_modules/broccoli-rollup/dist/index.js:15:9)
    at rollup (/dir/node_modules/broccoli-rollup/dist/index.js:10:12)
    at Object.apply (/dir/node_modules/broccoli-rollup/index.js:9:20)
    at /dir/node_modules/ember-artisans/index.js:13:5
    at Array.map (<anonymous>)
    at treeFactory (/dir/node_modules/ember-artisans/index.js:12:21)
    at buildWorkerTrees (/dir/node_modules/ember-artisans/lib/worker-tree.js:11:14)
    at Class.treeForPublic (/dir/node_modules/ember-artisans/index.js:44:10)
    at Class._treeFor (/dir/node_modules/ember-cli/lib/models/addon.js:668:33)
    at /dir/node_modules/@embroider/compat/src/v1-addon.js:544:43
    at V1Addon.throughTreeCache (/dir/node_modules/@embroider/compat/src/v1-addon.js:490:20)
    at V1Addon.invokeOriginalTreeFor (/dir/node_modules/@embroider/compat/src/v1-addon.js:532:21)
    at V1Addon.buildPublicTree (/dir/node_modules/@embroider/compat/src/v1-addon.js:778:33)
    at V1Addon.build (/dir/node_modules/@embroider/compat/src/v1-addon.js:865:14)
    at V1Addon.<anonymous> (/dir/node_modules/@embroider/compat/node_modules/typescript-memoize/dist/memoize-decorator.js:100:52)
-~- (end) -~-

Any ideas for a workaround or fix? I tried to create create a reproducible example for testing against embroider with a fork from this repository. See here: https://github.com/johanrd/ember-artisans.

When running EMBER_TRY_SCENARIO=embroider-safe ember test there, I stumbled upon the following error:

Build Error (WaitForTrees)
could not find app javascript in index.html

Thanks

@srowhani
Copy link
Owner

Interesting. Thanks for reporting. Embroider support would be huge, and any PR's would be welcome.

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