-
Notifications
You must be signed in to change notification settings - Fork 784
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
Plugin Error Unexpected token (5:22896) in ..\node_modules\@stencil\state-tunnel\dist\esm\es5\stencil-state-tunnel.core.js #1063
Comments
it seems the issue was because of a missing folder './stencil' but I don't know why it got stuck here, i had to clone the repo in another folder and install deps to get it working. |
Was the error thrown during prerender? |
Saw a similar error, with one component that imported another. Deleting the .stencil directories fixed the issue. |
After a lot of debug logging the stencil build script to try to work out where this was coming from, I got past this problem by specifying 0.2.5 for the @stencil/router dependency. |
Thanks @tomsaunders & @ryanwatkins, doing both solutions fixed the issue. |
@jthoms1 it was thrown on 'npm start' |
Sorry, which |
In my case its the .stencil cache directory created by the compiler in the root of the component folder. |
I'm experiencing the same issue, my stancil core is 0.11.2 |
If you are using Router 0.2.6 please use a version of Stencil later than 0.11.4. This release had a breaking change to how functional components work. The latest release of router was updated to work with the newer Functional Component interface but in doing so it is no longer backward compatible. More details on the change can be read here. https://github.com/ionic-team/stencil/blob/master/CHANGELOG.md#-0114-2018-08-12 |
I already fixed it by updating stencil to 0.11.4 and router to 0.2.5, thanks @jthoms1 |
a little advice if it still happens even if you update stencil to 0.11.4 and router to 0.2.5, try to run: |
Stencil version:
@stencil/core@0.9.11
I'm submitting a:
[ x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
npm run build failed, below is the error:
[ ERROR ] Plugin Error
Unexpected token (5:22896) in
C:\Workarea\app\node_modules@stencil\state-tunnel\dist\esm\es5\stencil-state-tunnel.core.js
Expected behavior:
Build
package.json:
Other information:
The text was updated successfully, but these errors were encountered: