ITADN

Critical dependency: the request of a dependency is an expression warning with webpack (v3.21.0)

#13654Openkhamaileon 创建于 2026-04-04
bug :lady_beetle:auto-triaged
K
khamaileoncommented
### mapbox-gl-js version 3.21.0 ### Description Starting from mapbox-gl@3.21.0, webpack emits the following critical warning when bundling: ``` WARNING in ./node_modules/mapbox-gl/dist/mapbox-gl.js 1:823482-823491 Critical dependency: the request of a dependency is an expression ``` This warning does not occur with mapbox-gl@3.20.x. **Steps to Reproduce** Install mapbox-gl@3.21.0 in a Vue CLI / webpack project Run npm run build (or vue-cli-service build) Observe the warning in the build output ### Environment mapbox-gl: 3.21.0 (regression from 3.20.x) Bundler: webpack 5 Framework: Vue CLI
0 条评论