You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "danielleroux (via GitHub)" <gi...@apache.org> on 2024/10/14 10:46:26 UTC

[I] [Bug] Could not resolve zrender dependency (pnpm/workspace) [echarts]

danielleroux opened a new issue, #20419:
URL: https://github.com/apache/echarts/issues/20419

   ### Version
   
   5.5.1
   
   ### Link to Minimal Reproduction
   
   https://github.com/danielleroux/pnpm-angular-issue
   
   ### Steps to Reproduce
   
   1. Clone https://github.com/danielleroux/pnpm-angular-issue
   2. Execute `pnpm install`
   3. Execute `pnpm build`
   
   ### Current Behavior
   
   Import `echarts` in app.module.ts leads to the following error stack:
   ```
   my-demo-module:build: ✘ [ERROR] Could not resolve "zrender/lib/core/util.js"
   my-demo-module:build: 
   my-demo-module:build:     node_modules/echarts/lib/visual/visualDefault.js:45:24:
   my-demo-module:build:       45 │ import * as zrUtil from 'zrender/lib/core/util.js';
   my-demo-module:build:          ╵                         ~~~~~~~~~~~~~~~~~~~~~~~~~~
   my-demo-module:build: 
   my-demo-module:build:   You can mark the path "zrender/lib/core/util.js" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
   my-demo-module:build: 
   my-demo-module:build: 
   my-demo-module:build: ✘ [ERROR] Could not resolve "zrender/lib/core/util.js"
   my-demo-module:build: 
   my-demo-module:build:     node_modules/echarts/lib/visual/visualSolution.js:45:24:
   my-demo-module:build:       45 │ import * as zrUtil from 'zrender/lib/core/util.js';
   my-demo-module:build:          ╵                         ~~~~~~~~~~~~~~~~~~~~~~~~~~
   my-demo-module:build: 
   my-demo-module:build:   You can mark the path "zrender/lib/core/util.js" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
   ```
   
   
   
   ### Expected Behavior
   
   ECharts needs to resolve dependency inside a workspace (pnpm)
   
   ### Environment
   
   ```markdown
   - OS: macOS
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Could not resolve zrender dependency (pnpm/workspace) [echarts]

Posted by "github-actions[bot] (via GitHub) via commits" <co...@echarts.apache.org>.
github-actions[bot] commented on issue #20419:
URL: https://github.com/apache/echarts/issues/20419#issuecomment-6901365747

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Could not resolve zrender dependency (pnpm/workspace) [echarts]

Posted by "shalltears (via GitHub)" <gi...@apache.org>.
shalltears commented on issue #20419:
URL: https://github.com/apache/echarts/issues/20419#issuecomment-2478452415

   I also have this question


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Could not resolve zrender dependency (pnpm/workspace) [echarts]

Posted by "alanbarboza (via GitHub)" <gi...@apache.org>.
alanbarboza commented on issue #20419:
URL: https://github.com/apache/echarts/issues/20419#issuecomment-2457645853

   same issue here, any updates?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org