Hi everyone!
Ever since meteor 2.0 I’m getting this error when trying to build meteor on my server. I’ve been looking far and wide for a solution but to no avail.
What I have tried is added a .babelrc file to my project with the following contents but that didn’t help.
{ "plugins": [ ["react-refresh/babel", { skipEnvCheck: true }] ] }
Anyone know why I’m getting this error?
Errors prevented bundling: While building for web.browser: client/main.js: [BABEL] /build/dce66183-d6e6-4294-a1db-179ecb1f2493/client/main.js: React Refresh Babel transform should only be enabled in development environment. Instead, the environment is: "production". If you want to override this check, pass {skipEnvCheck: true} as plugin options. (While processing: "base$0$0")
I’m not using react in my project.
Any help is very much appreciated!
Thanks