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

Cannot find “node_modules/@babel/runtime/regenerator/index.js” within the federated module. #1135

Closed
zejunking opened this issue Jul 14, 2023 · 5 comments
Labels
resolved Question where solution was of community use

Comments

@zejunking
Copy link

description:Unable to load the "node_modules/@babel/runtime/regenerator/index.js" in the federated module sharing content. Debugging reveals that there is no "node_modules/@babel/runtime/regenerator/index.js" in webpack_modules.

webpack_modules['node_modules/@babel/runtime/regenerator/index.js'] is undefinded

/******/ 		// Execute the module function
/******/ 		var threw = true;
/******/ 		try {
/******/ 			var execOptions = { id: moduleId, module: module, factory: __webpack_modules__[moduleId], require: __webpack_require__ };
/******/ 			__webpack_require__.i.forEach(function(handler) { handler(execOptions); });
/******/ 			module = execOptions.module;
/******/ 			execOptions.factory.call(module.exports, module, module.exports, execOptions.require);
/******/ 			threw = false;
/******/ 		} finally {
/******/ 			if(threw) delete __webpack_module_cache__[moduleId];
/******/ 		}

/******/ 	/* webpack/runtime/react refresh */
/******/ 	!function() {
/******/ 		if (__webpack_require__.i) {
/******/ 		__webpack_require__.i.push(function(options) {
/******/ 			var originalFactory = options.factory;  /** options.factory is null  **/
/******/ 			options.factory = function(moduleObject, moduleExports, webpackRequire) {
/******/ 				var hasRefresh = typeof self !== "undefined" && !!self.$RefreshInterceptModuleExecution$;
/******/ 				var cleanup = hasRefresh ? self.$RefreshInterceptModuleExecution$(moduleObject.id) : function() {};
/******/ 				try {
/******/ 					originalFactory.call(this, moduleObject, moduleExports, webpackRequire);
/******/ 				} finally {
/******/ 					cleanup();
/******/ 				}
/******/ 			}
/******/ 		})
/******/ 		}
/******/ 	}();

version:
nextJs:12.3.3
nextjs-mf:7.0.2

@ScriptedAlchemy
Copy link
Member

need repro example

@ScriptedAlchemy
Copy link
Member

This may fix it: #1149

@ScriptedAlchemy ScriptedAlchemy added the resolved Question where solution was of community use label Jul 23, 2023
@chiicy
Copy link

chiicy commented Aug 6, 2023

It's not resolved. When I export in exposed next/dist/compiled/@babel/runtime/regenerator/index.js is still missing.

in old version: some exposed files are compiled into xxx-fed.js, they contain the following content

/***/
  **_"../../node_modules/next/dist/compiled/@babel/runtime/regenerator/index.js":_** /*!*********************************************************************************!*\
!*** ../../node_modules/next/dist/compiled/@babel/runtime/regenerator/index.js ***!
\*********************************************************************************/
  /***/
  (function(module, __unused_webpack_exports, __webpack_require__) {

in new version(7.x): some exposed files are compiled into xxx.js
does not contain next/dist/compiled/@babel/runtime/regenerator/index.js

@ScriptedAlchemy
Copy link
Member

Without a repro. It can't be debugged

@ScriptedAlchemy
Copy link
Member

Try the next tag on npm for the package, i believe i solved it in that release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolved Question where solution was of community use
Projects
None yet
Development

No branches or pull requests

3 participants