You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
× TypeError: The "path" argument must be of type string. Received undefined
│ at join (node:path:1175:7)
│ at /app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]._6allat2eyhmrem2zood2ybjpjq/node_modules/@nx/module-federation/src/utils/share.js:117:45
│ at Object.fn (/app/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rspack/core/dist/index.js:18922:15)
│ at next (/app/node_modules/.pnpm/@[email protected]/node_modules/@rspack/lite-tapable/dist/index.js:619:29)
│ at AsyncSeriesBailHook.callAsyncStageRange (/app/node_modules/.pnpm/@[email protected]/node_modules/@rspack/lite-tapable/dist/index.js:642:9)
│ at /app/node_modules/.pnpm/@[email protected]/node_modules/@rspack/lite-tapable/dist/index.js:86:18
│ at new Promise (<anonymous>)
│ a
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
when i try to replace the share.js with below code it builds fine
letnewReq=req.requesttry{newReq=library.name.endsWith('/*')
? /** * req usually is in the form of "../../../path/to/file" * library.path is usually in the form of "/Users/username/path/to/Workspace/path/to/library" * * When a wildcard is used in the TS path mappings, we want to get everything after the import to * re-route the request correctly inline with the webpack/rspack resolve.alias */(0,path_1.join)(library.name,req.request.split(library.path.replace(devkit_1.workspaceRoot,'').replace('/*',''))[1])
: library.name;}catch(e){}req.request=newReq;
The text was updated successfully, but these errors were encountered:
Current Behavior
it throws an error when building, looks like related to this issue
library.name has value
@company/app/config/*
Expected Behavior
handle wildcard ts import
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
when i try to replace the share.js with below code it builds fine
The text was updated successfully, but these errors were encountered: