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
I forked module-federation producer's code, i tried to run it. It shows error when i open the browser which leads futher to module-federation malfunctioning.
Unable to compile federated types, Error: compile TS failed, the original command is 'npx tsc --project C:\Users\oxyge\Project\bit-test\node_modules\.federation\tsconfig.6672be0bbb0f849d6702396f5c138c39.json'
Error: ENOENT: no such file or directory, open 'C:\Users\oxyge\Project\bit-test\node_modules\.cache\dist\@mf-types.zip'
STEPS
I have tried to track it down, it somehow related to tsconfig with bit installs
first it reads from config from .federation/tsconfig.{hash}.json
And this is where the type error the resolves in the context
error TS5058: The specified path does not exist: 'C:\Users\oxyge\Project\bit-test\node_modules\.federation\tsconfig.329502d679b482abca3caf2e93d2a425.json'npx tsc --project C:\Users\oxyge\Project\bit-test\node_modules\.federation\tsconfig.6672be0bbb0f849d6702396f5c138c39.json
error TS2688: Cannot find type definition file for 'C:\Users\oxyge\Project\bit-test\node_modules\@testing-library\jest-dom'.
The file is in the program because:
Entry point of type library 'C:\Users\oxyge\Project\bit-test\node_modules\@testing-library\jest-dom' specified in compilerOptions
error TS2688: Cannot find type definition file for 'C:\Users\oxyge\Project\bit-test\node_modules\vitest\globals'.
The file is in the program because:
Entry point of type library 'C:\Users\oxyge\Project\bit-test\node_modules\vitest\globals' specified in compilerOptions
The text was updated successfully, but these errors were encountered:
bit version is 1.8.68
i can't remember exactly, but should be similar
bit import bitdev.react/examples/vite-app
bit import frontend.module-federation/react/producer
bit fork examples/vite-app
bit fork react/producer
bit install
bit run react/producer
Describe the bug
I forked module-federation producer's code, i tried to run it. It shows error when i open the browser which leads futher to module-federation malfunctioning.
STEPS
.federation/tsconfig.{hash}.json
tsconfig.json
under rootAnd this is where the type error the resolves in the context
The text was updated successfully, but these errors were encountered: