question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax error in browser when using 'voie-pages'

See original GitHub issue

In 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
brattonrosscommented, Jan 9, 2021

Closing the issue as I believe this should be fixed 😀

0reactions
IlyaSemenovcommented, Jan 19, 2021

Ah, and you never published it. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found