aruntk / wc-loader

:toilet: Webcomponents webpack loader.
MIT License
99 stars 17 forks source link

Cannot resolve module 'wc' #4

Closed JacobSoderblom closed 7 years ago

JacobSoderblom commented 7 years ago

I'm trying to use your loader but it wont work, probably something I have done. 😄

Error in   Error: Child compilation failed:
  Module not found: Error: Cannot resolve module 'wc' in /private/var/www/path/to/components:

In my index.html i have the link tags that imports the web components

<link rel="import" href="../xcomp/components/xc-blanks.html" />
aruntk commented 7 years ago

@JacobSoderblom Did you install wc-loader? npm install --save-dev wc-loader

JacobSoderblom commented 7 years ago

@aruntk yes I did.

aruntk commented 7 years ago

@JacobSoderblom could you try the demo and check if it is working?https://github.com/aruntk/polymer-webpack-demo

JacobSoderblom commented 7 years ago

@aruntk The demo seems to work just fine, but it's using polymer and I'm using native web components.

I'll start to compare my project with the demo project and try to see what's going wrong.

aruntk commented 7 years ago

but it's using polymer and I'm using native web components.

@JacobSoderblom I dont think this has anything to do with the issue. It seems to be a module resolving issue.

aruntk commented 7 years ago

@JacobSoderblom Any update?

JacobSoderblom commented 7 years ago

@aruntk No it should not be a problem that I use native web components and the test polymer.

Nothing yet I'm afraid, did not have the time yesterday to look into it that much. Hopefully I'll have the time to day!

JacobSoderblom commented 7 years ago

@aruntk I tried to create a new project that has the same config as my other project, but I could not reproduce it. So it must be something in my project that's wrong.

I'll close this issue.

aruntk commented 7 years ago

@JacobSoderblom Okay. Glad to know the issue isn't occurring anymore. Thanks for checking out the project BTW. :)