Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack v5: doesn't work #42

Closed
lucalooz opened this issue Oct 11, 2020 · 0 comments · Fixed by #43
Closed

webpack v5: doesn't work #42

lucalooz opened this issue Oct 11, 2020 · 0 comments · Fixed by #43

Comments

@lucalooz
Copy link
Contributor

Unfortunately seems that this plugin doesn't work on webpack v5.

Uncaught TypeError: __webpack_modules__[moduleId] is not a function
    at __webpack_require__

Bundle code portion:

/******/ 	// WebpackRequireFrom
/******/ 	Object.defineProperty(__webpack_require__, "p", {
/******/ 	  get: function () {
/******/ 	try {
/******/ 	  if (typeof REQUIRE_BASE_URL !== "string") {
/******/ 	    throw new Error("WebpackRequireFrom: 'REQUIRE_BASE_URL' is not a string or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting");
/******/ 	  }
/******/ 	  return REQUIRE_BASE_URL;
/******/ 	} catch (e) {
/******/ 	  if (!false) {
/******/ 	    console.error(e);
/******/ 	  }
/******/ 	  return "auto";
/******/ 	}
/******/ 	 }
/******/ 	})/* webpack/runtime/jsonp chunk loading */
/******/ 	(() => {

Probably it's something very silly like a missing semicolon on the defineProperty call.

agoldis added a commit that referenced this issue Oct 13, 2020
Fixes #42. Webpack 5 compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant