-
Notifications
You must be signed in to change notification settings - Fork 429
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
React-scripts v4.0.0 incompatibility with paths #500
Comments
The aliased paths were never supported in CRA, but worked perfectly with |
Yes, aliased paths were never supported, but I use customize-cra and worked for me too. |
Use |
@Menci That's a very fragile solution relying on scripts to run in the correct moment, especially with CI builds it's tricky. |
It's THE ONLY WAY.
…On Fri, Nov 6, 2020 at 16:30 Daniel K. ***@***.***> wrote:
@Menci <https://github.com/Menci> That's a very fragile solution relying
on scripts to run in the correct moment, especially with CI builds it's
tricky.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#500 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWRBA7JORGDE24SRJKHGNDSOOXZPANCNFSM4S7224YA>
.
|
Well, I would argue that the "only way" is to annoy React team until they fix it 😆 |
I don't know what you guys think but for me this is the time to eject and get rid of react-scripts... |
@redaxmedia I am thinking similar, but redirecting my attention to NextJS, which doesn't impose such weird limitations. They even support aliased paths out of the box. It's fairly well crafted from what am I seeing so far. Maybe even better than CRA. The only bad thing is the need for a server, but that's manageable. |
@FredyC Well, that would be overkill for someone that just like to replace the underlaying webpack scripting. I found that someone opened an pull request to allow paths: facebook/create-react-app#10014 |
Why would you think so? It's still React, just different, less strict, tooling. I am pretty much sure, that you could just take your CRA code base and start it with Next. SSR and other advanced things are not mandatory. But that's surely offtopic here, just saying :) |
I have a PR to add |
@sheepsteak Fix the pipeline ... there are things like |
@redaxmedia All the PRs on that repo are failing, unfortunately. They said they're working on it. |
|
After upgrading my react-scripts to v4.0.0, React to 17.0.1, and leaving react-app-rewired at v2.1.6, I get this.
appTsConfig.compilerOptions[option] = value;
TypeError: Cannot add property paths, object is not extensible at verifyTypeScriptSetup (/root/project/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239:43) at Object.<anonymous> (/root/project/node_modules/react-scripts/scripts/start.js:31:1) at Module._compile (internal/modules/cjs/loader.js:1015:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10) at Module.load (internal/modules/cjs/loader.js:879:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Module.require (internal/modules/cjs/loader.js:903:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (/root/project/node_modules/react-app-rewired/scripts/start.js:35:1) at Module._compile (internal/modules/cjs/loader.js:1015:30) error Command failed with exit code 1.
I already set
noFallthroughCasesInSwitch
totrue
andjsx
:"react"
.According to this issue, paths property still not allowed.
Any solution with react app rewired?
The text was updated successfully, but these errors were encountered: