Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

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 [email protected] installed globally.

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

No branches or pull requests

1 participant