-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
SyntaxError: Named export 'Pane' not found. #176
Comments
Hi @JeanJPNM, Thanks for the PR. |
It still doesn't work, looking at the package.json, I see that the esm imports are using the old name of the es module. Updating it like this should fix the problem: {
- "module": "./dist/splitpanes.es.js",
+ "module": "./dist/splitpanes.mjs",
// ...
"exports": {
// ...
".": {
- "import": "./dist/splitpanes.es.js"
+ "import": "./dist/splitpanes.mjs"
}
}
} |
Also I can't reopen this issue. |
You're right, the .es.js should be there and it was changed to mjs with the latest updates. Now it should be fixed in version 3.1.4. |
The issue still persists, for vite to know that a javascript file is an es module it looks for a |
Okay, I will serve it as an ES Module, I think it is time to move on anyway. :) |
It works now, thanks! |
I was testing this package with vitepress 1.0.0-alpha.22 and vue 3.
The package works as expected in dev mode, but during build, vite will not be able to load it:
This is likely related to intlify/vue-i18n#1131
The text was updated successfully, but these errors were encountered: