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

export { index as default, updateStorage } #69

Open
cloudbam opened this issue Sep 26, 2023 · 0 comments
Open

export { index as default, updateStorage } #69

cloudbam opened this issue Sep 26, 2023 · 0 comments

Comments

@cloudbam
Copy link

vue3 ssr
add "pinia-plugin-persist"
npm run build

run worry

/src/node_modules/pinia-plugin-persist/dist/pinia-persist.es.js:38
export { index as default, updateStorage };
^^^^^^

SyntaxError: Unexpected token 'export'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

package.json
add type=module

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