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

[I] Dt[_t] is not a constructor [echarts]

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

   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoW7YCIDmAnCAJpgFzJoYWYDOAFsAO4mxi4CuApgDTkXqYA27AGZgmADm68MmfNhqjSEnr0xhQ4yVKwAjYGDUBbJgGYADJqmYAxjDABDCNAAyd7e35MWHCyt24C7LgA6oRgNEwAjD6UfgG4AMLA_MC4TJgAxPEA7PEAYgAiuZjKAL4-AuzY7NBEpKhaWHb8ENjQaYIimNHSKRDVClh0-ABetk1dyjF6hkzmk9IEdvZMANrzUvUNWpjQdgbsaQCCE1vbEGDsBgDKYACegkybpw3WSSlp6QBMEca5YqbFZ68ErrYHdDagl67fZpABCJyB0nOlxu9wOdUhz1eyVSpAyAFZPvkACz5fKAxHoEFAsqY9BPRE7PborDxLDgraYZHXO4PDGUyw2HEfXKHABsxIlFMp1OesqkAF0OVyLgYABLsFrySJzF4XAAeYFRfLIQOx7zxXyyn1hxgAogjTpghLYrhBhiyIqZQfLYLTKGokpAQI9QdQ6IxSF4uGG7CAQNUCAAVYCw4AEW6eNgxl4gOwEAiObCzZWxQKJYWWz7W20O0spOIhAhhSLKg1G3kshkvIUWrDpISDoeOzku6BgXJ7CD8TN4w4AN0C9lgNzsNTs_hHLzHRvdnuJPtLdisAGs8MBWDUK32MtWbfbpX7yvrDvqIFRQ3rbgm0lYlpUUkzZVFmWUg1jNT5TAiMQt22SCIgATlgyxIMg5CVFQiJ0MoVDPkfCglVjN8qBcNwPH5LFaAYLNvDpLBHAuXB53GUhdSxHc3Q9HUOUoPMCyLVY6IoYkeK0NjKXExFvSBQizR3ScDGnWcsAXJc7BXex103US-B3IJ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ZmRBs5yQzzKTNw-BRZqzkLv5BVuAYXQ21rAQFwFYB4a0qCk_J5xFkSgvYMCuAzpI-VEahYRVzpzDKMVYvTu5vFmruc-dJeS-zkR-vBfpfZ8LLKsDss5fC-LbRE4ERQCUIAA
   
   ### Steps to Reproduce
   
   The graph component that I intent to create is similar to the one shown in the link above.
   
   ### Current Behavior
   
   Currently, I've developed a component named C1, which accepts data as input and renders it as illustrated in the provided code snippet. Subsequently, this C1 component is utilized in two distinct modules, M1 and M2, each within its respective components. The folder structure is organized as follows:
   
   - Components
      |----- C1 ( my echarts graph)
   
   - M1
      |------ MC1 -> C1
   
   - M2
      |------ MC2 -> C1
   
   
   The issue I'm encountering is that while the graph functions correctly in M1, it fails to do so in M2, despite both modules receiving identical data for graph generation.
   
   The error encountered in M2 is:
   ``` Dt[_t] is not a constructor ```
   
   This image gives a detailed explanation for the issue faced.
   
   <img width="1211" alt="Screenshot 2024-05-10 at 4 03 30 PM" src="https://github.com/apache/echarts/assets/147727230/48a558e2-1241-4cc8-80e9-0c2898f4152a">
   
   
   
   ### Expected Behavior
   
   Ideal behaviour is that it should work in both the modules.
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### 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] Dt[_t] is not a constructor [echarts]

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

   See if the [FAQ](https://echarts.apache.org/faq.html#others) helps.


-- 
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] Dt[_t] is not a constructor [echarts]

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

   @plainheart Already checked the existing docs and support, but could not find anything constructive


-- 
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] Dt[_t] is not a constructor [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #19921:
URL: https://github.com/apache/echarts/issues/19921#issuecomment-2111547801

   This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.


-- 
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] Dt[_t] is not a constructor [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] closed issue #19921: [Bug] Dt[_t] is not a constructor
URL: https://github.com/apache/echarts/issues/19921


-- 
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] Dt[_t] is not a constructor [echarts]

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

   Yes, it was some import issue. Imported CanvasRenderers and now it works fine. Thankyou!


-- 
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] Dt[_t] is not a constructor [echarts]

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

   Did you import and use the renderers, component and series?
   https://echarts.apache.org/handbook/en/basics/import/#shrinking-bundle-size


-- 
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