question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"TypeError: __webpack_modules__[moduleId] is not a function" in React

See original GitHub issue

Describe the bug

When I add some plugins, such as uml chart

import chart from "@toast-ui/editor-plugin-chart";

then the error below

TypeError: __webpack_modules__[moduleId] is not a function

To Reproduce

Just import the plugin in a React component

Screenshots

截屏2021-06-18 11 32 19

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
js87zzcommented, Jul 7, 2021

@partoneplay It was a compatibility issue between version 4 and version 5 of the webpack to handle external modules. I can resolve the issue by changing the bundle format(cjs => umd).

I was able to fix it quickly because it was easily reproduced in your project. Thank you 😃

  • released plugins
    • @toast-ui/editor-plugin-uml@3.0.1
    • @toast-ui/editor-plugin-chart@3.0.1
    • @toast-ui/editor-plugin-color-syntax@3.0.1
1reaction
js87zzcommented, Jun 21, 2021

@partoneplay I think this issue is same as #1589. I will check it . Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebPack - TypeError: __webpack_modules__[moduleId] is ...
I'm struggling with a WebPack error that occur when I use my custom library hosted as a package and streamed with NPM Link....
Read more >
Test Renderer - React
This package provides a React renderer that can be used to render React components to pure JavaScript objects, without depending on the DOM...
Read more >
React Error: "this.setstate is not a function" - How to Fix
"this.setstate is not a function" is a common error message that comes up in React. In this article, we'll learn how to fix...
Read more >
'X' is not a function TypeError in React [Solved] | bobbyhadz
The React.js Uncaught TypeError: X is not a function occurs when we try to call a value that is not a function as...
Read more >
TypeError: Object(...) is not a function · Issue #14484 - GitHub
Do you want to request a feature or report a bug? Bug (May be ) What is the current behaviour? I have created...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found