Skip to content

error when running ssr + mix #37

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

Open
mvalenziano opened this issue Dec 13, 2022 · 0 comments
Open

error when running ssr + mix #37

mvalenziano opened this issue Dec 13, 2022 · 0 comments

Comments

@mvalenziano
Copy link

running a node ssr server throws the following error :

vue-plugin-load-script/index.js:44
export { unloadScript, loadScript };
^^^^^^

SyntaxError: Unexpected token 'export'
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1033:15)
at Module._compile (node:internal/modules/cjs/loader:1069:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.vue-plugin-load-script (public/js/ssr.js:7126:18)
at webpack_require (js/ssr.js:7161:41)
ReferenceError: Cannot access 'WEBPACK_DEFAULT_EXPORT' before initialization
at Module.default (public/js/ssr.js:5093:42)
at /node_modules/@inertiajs/inertia-vue3/dist/index.js:1:9383
at processTicksAndRejections (node:internal/process/task_queues:96:5)

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