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

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