mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

v3.3.0 Circular dependency

Open guoqing22 opened this issue 1 year ago • 3 comments

npm run build-prod

console output ↓

[email protected] build-prod rollup -c --environment BUILD:production

src/index.js, src/source/worker.js → rollup/build/mapboxgl... (!) @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to true, as the next major version will default this option to true. [!] Error: Circular dependency: src/style-spec/expression/parsing_context.js -> src/style-spec/expression/compound_expression.js -> src/style-spec/expression/parsing_context.js

guoqing22 avatar Apr 17 '24 07:04 guoqing22

What's your OS? We added some code to ignore circular dependencies in style-spec, but maybe the leading slash breaks things in Windows, not sure... cc @stepankuzmin

https://github.com/mapbox/mapbox-gl-js/blob/541c310343547c76b83fb26c97126bb4f15f9479/rollup.config.js#L92-L97

mourner avatar Apr 17 '24 09:04 mourner

os:windows 11 nodejs: v20.12.1

guoqing22 avatar Apr 17 '24 09:04 guoqing22

Resolved

windows path "/" is "//"

👇👇👇

image

guoqing22 avatar Apr 17 '24 10:04 guoqing22