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

Build Failed using react-app-rewired #644

Open
Leyksnal opened this issue Feb 22, 2023 · 3 comments
Open

Build Failed using react-app-rewired #644

Leyksnal opened this issue Feb 22, 2023 · 3 comments

Comments

@Leyksnal
Copy link

Error building with react-app-rewired

react-app-rewired build

Creating an optimized production build...
Failed to compile.

Attempted import error: 'LowPriority' is not exported from 'scheduler' (imported as 'LowPriority').
@medram
Copy link

medram commented Sep 1, 2023

Having the same issue, it's react-app-rewired that caused the issue, I still don't know how to fix it,

Does anyone have an idea to fix this?

@medram
Copy link

medram commented Sep 1, 2023

Finally, I've fixed it, in my case the issue is caused by an alias, I've removed it, and everything worked as intended:

{
    "compilerOptions": {
        "paths": {
            "@components/*": ["./src/components/*"],
            "@assets/*": ["./src/assets/*"],
            "@api/*": ["./src/api/*"],
            "@hooks/*": ["./src/hooks/*"],
            "@pages/*": ["./src/pages/*"],
            "@utils/*": ["./src/utils/*"],
-            "@/*": ["./*"]
        }
    }
}

@DewangS
Copy link

DewangS commented Feb 8, 2024

@medram ... in my case I am getting below error .. have no idea what's wrong with the webpack config

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.resolve has an unknown property 'fallback'. These properties are valid:
    object { alias?, aliasFields?, cachePredicate?, cacheWithContext?, concord?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, unsafeCache?, useSyncFileSystemCalls? }
    -> Options for the resolver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants