Closed acrolink closed 5 years ago
The issue was caused because I used a custom nuxt.config.js
for production with the name nuxt.config.prod.js
.
On build I was not using the -c nuxt.config.prod.js
switch.
This switch must be declared on both tasks nuxt build
and nuxt start
Works as expected.
Version
v0.3.5
Reproduction link
https://jsfiddle.net/yqr9s70a/
Steps to reproduce
The following code works perfect in development (nuxt script):
However, in production (nuxt build && nuxt start) I get this error:
ERROR Cannot read property '$get' of undefined 07:59:22
What is expected ?
To work in production as it does on development
What is actually happening?
Error