-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
@20.3.0 MFE custom webpack relative path to main.ts incoherent #29507
Comments
I attached my root tsconfig.base and package.json this line in my webpack.config.ts permits webpack to coherently navigate path
I have eliminated all circular dependency risks |
Current Behavior
SUBJECT: @20.3.0 MFE custom webpack relative path to main incoherent
I have a nifty MFE scaffold that does alot from graphql to nest to mongoose/typegoose and alot of good Nx stuff.
My code is so patterned by models it doesnt even need polyfills or any javascript its plug and play of models patterned by decorators that process my models (instances/collections) in/out of my mongoose back end... my nx scaffold code does not deviate to warrant any polyfill usage but I got wiped out by them anyway.
But being in the MFE arena means webpack which means polyfills which means webpack 5 polyfill flank
I customized my webpack.config.ts for a nestjs back end called admin-api
but the mix gets thick rooting out the polyfill dilemma and Im unable to even compile my main.ts due to incoherent RELATIVE PATH
this presents a break in RELATIVE PATH beyond tsonfig.base.json paths and normal imports
webpack just dont want to do relative paths and there is not enough eFrastructure to make this succeed (ie. entry)
Expected Behavior
code should compile clean and build
GitHub Repo
https://github.com/nhhockeyplayer
Steps to Reproduce
thanks in advance for your kindness
Nx Report
Failure Logs
Package Manager Version
npm --version 10.9.0 yarn --version 1.22.22
Operating System
Additional Information
here is my run command
I omitted withModuleFederation in my webpack.config.ts just to side step that and get to the polyfill issues first
the issues I am encountering are too numerous to start any one issue
but I ran into a relative path issue now
nx cannot maintain coherent pathing with main.ts and the nest project I generated using nx-console
here is my latest run command
and error showing the relative path issue
my tsconfig.base.json has appropriately setup a path for this but its not cutting it for NX.
and here is my webpack.config.ts omitting what should be withModuleFederation for now to nail the polyfill issues 1st.
It would be nice if a substantive example existed for angular but nothing at all on web
The text was updated successfully, but these errors were encountered: