Open patrickalima98 opened 4 years ago
I can't reproduce it as I'm not on Windows, so feel free to make a PR :)
Hi @Gomah, how are you? I opened the PR to fix this issue, Can you see this please? :)
PR: https://github.com/Gomah/nuxt-stencil/pull/66
Thank you
Hello @Gomah, after trying include a stencil lib using
path.resolve()
, the nuxt-stencil can't find the module.The problem is because the Windows use
\
and not/
, so yourplugin.ts
, is generate this file:With this, I get this response:
But, if I replace
\
to/
, works fine.I have an idea how to fix it, if you agree, I can make a PR :)
Steps for to reproduce:
1- Add any stencil lib or component in the
static
folder. 2- Make the configuration using thepath module
. 3- runnpm run dev
4- check the terminal and stencil.js in.nuxt/stencil.js
.My nuxt.config.js:
My environment:
OS: Windows 10 x64 Version 1903 Node: 10.16.3 NPM: 6.9.0 Nuxt: 2.0.0 nuxt-stencil: 0.1.1