question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2.7.0+ production mode issue

See original GitHub issue

Describe the bug

After upgrading to 2.7.0+, the production mode site is broken

image

Reproduction

Sry, I can not share my repo, here is the package.json

“dependencies”: { “@vitejs/plugin-vue”: “2.0.0”, “@vuelidate/core”: “^2.0.0-alpha.14”, “@vuelidate/validators”: “^2.0.0-alpha.13”, “@vueuse/core”: “^7.2.2”, “@vueuse/integrations”: “^7.2.2”, “@vueuse/router”: “^7.2.2”, “chart.js”: “^3.6.2”, “core-js”: “^3.19.3”, “devextreme”: “^21.2.4”, “devextreme-aspnet-data-nojquery”: “^2.8.4”, “devextreme-vue”: “^21.2.4”, “lodash”: “^4.17.21”, “primeflex”: “^3.0.0”, “primeicons”: “^5.0.0”, “primevue”: “^3.10.0”, “prismjs”: “^1.15.0”, “universal-cookie”: “^4.0.4”, “vite”: “2.7.2”, “vite-plugin-checker”: “^0.3.4”, “vite-plugin-eslint”: “^1.3.0”, “vue”: “^3.2.24”, “vue-router”: “^4.0.12”, “vue-tsc”: “^0.3.0”, “vue-word-highlighter”: “^1.0.4”, “vuedraggable”: “^4.1.0”, “@vicons/fa”: “^0.11.0”, “@vicons/utils”: “^0.1.4” }, “devDependencies”: { “@types/jest”: “^27.0.3”, “@types/lodash”: “4.14.178”, “@types/prismjs”: “^1.16.5”, “@vue/compiler-sfc”: “^3.2.24”, “@vue/eslint-config-airbnb”: “^6.0.0”, “@vue/eslint-config-typescript”: “^9.0.0”, “sass”: “^1.44.0”, “typescript”: “^4.4.3” }

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
    Memory: 18.97 GB / 31.73 GB
  Binaries:
    Node: 17.0.1 - C:\Program Files\nodejs\node.EXE
    npm: 8.1.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (96.0.1054.53)
    Internet Explorer: 11.0.22000.120

Used Package Manager

npm

Logs

No response

Validations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
m430commented, Dec 21, 2021

I use react with vite@2.7.4, in development anything is right, but when I run npm run build, it broken. I think maybe it is because some modules is use commonjs require, so I add the @rollup/plugin-commonjs, but it doesn’t work.

1reaction
jzs11commented, Dec 15, 2021

I was able to solve it after some trial and error I turned on sourcemap and serve it in local, the error is coming from @babel/runtime fn missing Install that resolve the problem Still not sure why it only happens after 2.7.0

Do you mean install the @babel/runtime in the npm packages?

yes, but just my case, if it doesn’t work for you you can turn on source map and debug it in dev tools

Thanks dude, not my case. It really a show stopper for us to upgrade to 2.7 for vite. 😌

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to put Vue.js in production mode using webpack 2.7?
so I guess an easy fix could be to put Vue into production mode. To build for production I run yarn run build...
Read more >
Frequently Asked Questions (FAQ) - Rally 2.7.0 documentation
This error occurs when Rally cannot build an Elasticsearch distribution from source code. The most likely cause is that there is some problem...
Read more >
Flow Server Production Mode - com.vaadin - Maven Repository
Version Vulnerabilities Repository Usages Date 23.3.x 23.3.0 Central 0 Dec 12, 2022 23.2.x 23.3.x 23.2.8 Central 1 Dec 07, 2022 23.2.x 23.2.7 Central 1 Nov 23,...
Read more >
Installation - Vue.js
Production Mode. Development/production modes are hard-coded for the UMD builds: the un-minified files are for development, and the minified files are for ...
Read more >
Docker Compose release notes | Docker Documentation
Fixed a bug to prevent “invalid template” errors on valid environment ... log or additional information, check the Compose repository 2.7.0 release page....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found