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
✘ [ERROR] Could not resolve "echarts/lib/util/number"
node_modules/echarts-liquidfill/src/liquidFillView.js:2:28:
2 │ import * as numberUtil from 'echarts/lib/util/number';
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~
The module "./lib/util/number" was not found on the file system:
node_modules/echarts/package.json:215:11:
215 │ "./*": "./*"
╵ ~~~~~
Import from "echarts/lib/util/number.js" to get the file "node_modules/echarts/lib/util/number.js":
node_modules/echarts-liquidfill/src/liquidFillView.js:2:52:
2 │ import * as numberUtil from 'echarts/lib/util/number';
│ ^
╵ .js
You can mark the path "echarts/lib/util/number" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
I'm not familiar with angular. What bundler are you using? For vite, you can add the following in config. I believe other bundlers like webpack have similar configs.
angular 18 app build error:
root cause: echarts not export
lib/util/number
inpackage.json
: https://github.com/apache/echarts/blob/master/package.json#L146-L202if add the
lib/util/number
to the export section ofnode_modules/echarts/package.json
, the error disappear:but modify echart's
package.json
should not be a good solution. please fix the issue inecharts-liquidfill
.The text was updated successfully, but these errors were encountered: