Skip to content

"eval" warning during production build #2033

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

Open
TechAkayy opened this issue Mar 15, 2023 · 1 comment
Open

"eval" warning during production build #2033

TechAkayy opened this issue Mar 15, 2023 · 1 comment

Comments

@TechAkayy
Copy link

Vue devtools version

6.5.0

Link to minimal reproduction

https://github.com/TechAkayy/happy-paws-with-nuxt3

Steps to reproduce & screenshots

Note, this is a nuxt project, and devtools is added as a nuxt plugin under the plugins folder (flagged for development mode only)

npm install
npm build

Check console, there are numerous eval warning.

image

What is expected?

No eval warnings should be consoled during production build as devtools is flagged only for development.

What is actually happening?

Numerous eval warning appear. This is troublesome especially when the build process is part of a CI/CD process that picks and fails on such warnings.

System Info

System:
    OS: macOS 12.6.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 627.38 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
  Browsers:
    Chrome: 111.0.5563.64
    Chrome Canary: 113.0.5653.0
    Safari: 15.6.1

Any additional comments?

No response

@sapphi-red
Copy link

This warning seems to be happening because of the use of eval-source-map.

/*
 * ATTENTION: An "eval-source-map" devtool has been used.
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */

https://cdn.jsdelivr.net/npm/@vue/[email protected]/build/backend.js

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