You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently nuxt with vite cannot use plugin @vitejs/plugin-legacy to handle old browser, so I choose webpack as builder
and I want to set the target to es5.
Logs
For the selected environment is no default script chunk format available: 12:11:59
JSONP Array push can be chosen when 'document' or 'importScripts' is available.
CommonJs exports can be chosen when 'require' or node builtins are available.
Select an appropriate 'target' to allow selecting one by default, or specify the 'output.chunkFormat' directly.
JSONP Array push can be chosen when 'document' or 'importScripts' is available.
CommonJs exports can be chosen when 'require' or node builtins are available.
Select an appropriate 'target' to allow selecting one by default, or specify the 'output.chunkFormat' directly.
at node_modules/webpack/lib/config/defaults.js:822:11
at F (node_modules/webpack/lib/config/defaults.js:73:15)
at applyOutputDefaults (node_modules/webpack/lib/config/defaults.js:803:2)
at applyWebpackOptionsDefaults (node_modules/webpack/lib/config/defaults.js:197:2)
at createCompiler (node_modules/webpack/lib/webpack.js:77:2)
at create (node_modules/webpack/lib/webpack.js:134:16)
at webpack (node_modules/webpack/lib/webpack.js:158:32)
at f (node_modules/webpack/lib/index.js:64:16)
at node_modules/@nuxt/webpack-builder/dist/index.mjs:1053:22
at Array.map (<anonymous>)
at bundle (node_modules/@nuxt/webpack-builder/dist/index.mjs:1045:36)
at async build (node_modules/nuxt/dist/index.mjs:2282:5)
at async Object.invoke (node_modules/nuxi/dist/chunks/build.mjs:56:5)
at async _main (node_modules/nuxi/dist/cli.mjs:50:20)
The text was updated successfully, but these errors were encountered:
Environment
Darwin
v16.17.0
3.0.1-rc.0-27889360.9de94c2
2.0.0-27889428.15edef0
npm@8.15.0
webpack
builder
,hooks
-
-
Reproduction
https://github.com/rafifn/repro-nuxt-issue
Describe the bug
can't set the target on webpack config
Additional context
currently nuxt with vite cannot use plugin
@vitejs/plugin-legacy
to handle old browser, so I choose webpack as builderand I want to set the target to
es5
.Logs
The text was updated successfully, but these errors were encountered: