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

Could not find module ember-web-component-container/create-web-components #7

Open
jelhan opened this issue May 7, 2020 · 1 comment

Comments

@jelhan
Copy link
Contributor

jelhan commented May 7, 2020

I'm trying to use the latest version published to NPM in a newly created Ember application but facing this run-time issue:

Uncaught Error: Could not find module `ember-web-component-container/create-web-components` imported from `(require)`
    at missingModule (loader.js:247)
    at findModule (loader.js:258)
    at requireModule (loader.js:24)
    at register-components.js:2

I followed the documentation. Done these steps:

  1. ember new ember-web-component-container-demo
  2. cd ember-web-component-container-demo
  3. ember install ember-web-component-container
  4. Remove <link> tags from app/index.html
  5. Run ember serve and open in Chrome
@simonihmig
Copy link

Same here. The published version does not match what's here in the repo. On npm the whole /addon folder is missing. Which might be correct, as addon/create-web-components.js seems to be largely overlapping with loader.js. Also the published version is 0.1.5, while this package.json does not reflect this (still on 0.0.0)...

I got it now "working" by

  • commenting out this line locally (in my node_modules)
  • changing index.html to remove the scripts and add something like this:
<script src="{{rootURL}}loader.js"></script>
<my-app/>

Obviously that's not a real solution, which brings up this question: #16

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