G
G
grabbee2021-03-27 00:44:56
Vue.js
grabbee, 2021-03-27 00:44:56

Is NUXT SSR difficult?

I have a relatively large project on NUXT that works like a SPA - search engines do not index well. The execution of JS on the client is now 4-6 seconds, which is already a lot. Simply switching ssr: true even in development mode throws an error

Cannot use import statement outside a module
vm.js - Missing stack frames

I have uncompiled modules in node_modules - I configured them in webpack to recompile them at build time. Maybe that's the problem. I don’t know how to solve

The question is, what if the problem is something else, and in principle it will be difficult for me to start SSR, maybe I shouldn’t start then?...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Velichko, 2021-04-01
@grabbee

There is such an option build.transpile
Please attach a detailed error and your config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question