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

Error in prod build #1

Open
EvilaMany opened this issue Jun 29, 2022 · 3 comments
Open

Error in prod build #1

EvilaMany opened this issue Jun 29, 2022 · 3 comments

Comments

@EvilaMany
Copy link

When I make production build, I always get an error:

WARNING in ./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js 134:63-70
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/@vue/server-renderer/index.js
@ ./node_modules/vue/server-renderer/index.mjs
@ ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/dist/templateLoader.js??ref--6!./node_modules/vue-loader/dist??ref--9-0!./src/App.vue?vue&type=template&id=ecf91598
@ ./src/App.vue?vue&type=template&id=ecf91598
@ ./src/App.vue
@ ./src/entry-server.js

Any ideas how to solve this?

@CyberAP
Copy link
Owner

CyberAP commented Jun 29, 2022

You might try updating the dependencies.

@EvilaMany
Copy link
Author

It didn't help (I tried in cloned non modified project)

I found that the error appears only with target: "node" in ssr webpack config

@CyberAP
Copy link
Owner

CyberAP commented Jun 29, 2022

I am sorry I don't have a capacity to help you with this issue since the reason is completely unclear to me. Please post a solution here in case you're able to resolve that yourself.

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

2 participants