Closed RoelVB closed 9 months ago
For me it looks like it's eslint related error. Could you try running npx fast-serve --eslint=false
and see if the error is still here?
Thank you for the very fast reply. That does indeed solve my issue.
You could just copy the .eslintrc.js
from newly scaffolded SPFx 1.18 hello world web part, or just use this one from samples. Then linting should work for you, so you could remove --eslint=false
Hey @s-KaiNet, thanks for your engagement in the community. I'm still running into the above issue after trying the recommended steps you've provided. I'm currently using spfx-fast-serve-helpers 1.18.0. My fast serve doesn't appear to working and I'm still having the initial error @RoelVB posted. I'm attempting to upgrade my SPFX webpart from 1.10 to 1.18. I've deleted my lock file and node_modules folder multiple times. I've updated my eslintrc.js, tsconfig.js, and package.json files from referencing your example here.
@pathaw have you tried to disable eslint for fast-serve? Also, if you stil have the the problem, could you create a new issue, because it's just easier to track?
@s-KaiNet yes I've tried that as well with no success. I'll create a new issue. Thanks for the quick reply.
I had this error and I was able to fix it by renaming the wrongly named file "eslint.js" as "eslintrc.js".
First, thank you for your work on this.
Second. I'm currently experiencing an issue after upgrading from 1.12 to 1.18. When I initially run
fast-serve
everything is fine. When I resave a file (without changes) I get the errorParsing error: The keyword 'import' is reserved
(related to the file I just saved)Output:
Any ideas on how to solve this? I've already reinstalled the
node_modules
.