Syntax error in browser when using 'voie-pages'
See original GitHub issueIn the example below.
If voie-pages
was not istalled, the error does not exists - only a Cannot find module 'voie-pages' or its corresponding type declarations.
at ./src/main.ts:8
in vscode (can hide with // @ts-ignore
).
After voie-pages
is installed as dev dependency, the error is in the browser’s console and only shows a white screen.
pnpm: Uncaught SyntaxError: The requested module '/node_modules/.pnpm/voie-pages@0.4.0_vue@3.0.5/node_modules/voie-pages/index.js?v=0.4.0' does not provide an export named 'default'
yarn: Uncaught SyntaxError: The requested module '/node_modules/voie-pages/index.js?v=0.4.0' does not provide an export named 'default
The file install.sh
is not necessary, but makes switching between package managers easily.
git clone https://github.com/nandordudas/vite-plugin-voie
cd vite-plugin-voie && ./install.sh
- Node: v15.5.1
- OS: Manjaro Linux x86_64
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to Handle the Syntax Error in Javascript - Rollbar
The Javascript SyntaxError is thrown when the engine comes across tokens or token orders with incorrect syntax when parsing code.
Read more >Syntax Error when tried to open a website - Microsoft Community
Original title: Syntax Error 0 Webpage error details User Agent: ... First step, try uninstalling any software that you don't use that is ......
Read more >IE complaining JS syntax error but works on other browsers
Javascript function below works fine using Chrome or Firefox. However seem to get a syntax error in Internet Explorer.
Read more >SyntaxError - JavaScript - MDN Web Docs
The SyntaxError object represents an error when trying to interpret syntactically invalid code. It is thrown when the JavaScript engine encounters tokens or ......
Read more >Using ECMAScript21 in VSCode creates syntax error
When importing the app to Visual Studio Code (VSCode), trying to sync the same Script include I get this error: Syntax errors detected...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing the issue as I believe this should be fixed 😀
Ah, and you never published it. 😃