Skip to content
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

Uncaught TypeError: _App.default is not a constructor #2

Open
tomwayson opened this issue Jan 25, 2021 · 0 comments
Open

Uncaught TypeError: _App.default is not a constructor #2

tomwayson opened this issue Jan 25, 2021 · 0 comments

Comments

@tomwayson
Copy link

After pulling and running npm i && npm run dev, I see the following warning in the terminal:

Parser "parcel-plugin-svelte/lib/svelte-asset.js" failed to initialize when processing asset "src/components/App.svelte". Threw the following error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './compiler.js' is not defined by "exports" in /Users/tom/code/svelte-template-parcel/node_modules/svelte/package.json

I then load http://localhost:1234/ and I see a blank screen and the following error in the console:

main.js:3 Uncaught TypeError: _App.default is not a constructor
    at Object.parcelRequire.main.js.~/components/App.svelte (main.js:3)
    at newRequire (main.1f19ae8e.js:47)
    at main.1f19ae8e.js:81
    at main.1f19ae8e.js:120

I have parcel-bundler@1.12.4 installed globally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant