alikleit-ns opened a new issue, #18560:
URL: https://github.com/apache/echarts/issues/18560

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   https://stackblitz.com/edit/github-yvhxtq-mctmmg?file=pages/index.js
   
   ### Steps to Reproduce
   
   I'm using the 3D surface options from echarts examples in my Nextjs 
application. This requires 'echarts-gl' to be imported, so I tried:
   
   ```
   import 'echarts-gl'
   ```
   and
   ```
   const echartgl = dynamic(() => import('echarts-gl'), {
     ssr: false
   });
   ```
   along with next-transpile-modules
   ```
   //next.config.js 
   const withTM = require('next-transpile-modules')(['echarts', 'echarts-gl']);
   
   module.exports = withTM({...})
   
   ```
   
   However, I'm getting the following Error:
   ```
   ReferenceError: self is not defined
   ```
   
   Any way to import that library into nextjs to make the echart-gl related 
graphs work? I have reproduced this issue in a sandbox.
   
   
   ### Current Behavior
   
   Getting Error "ReferenceError: self is not defined" when importing 
"echarts-gl"
   
   ### Expected Behavior
   
   Ability to import echarts-gl into nextjs without having that error.
   
   ### Environment
   
   _No response_
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to