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

cannot build projects when cwd contains a pathname with ! #13606

Open
devkral opened this issue Jun 9, 2024 · 1 comment
Open

cannot build projects when cwd contains a pathname with ! #13606

devkral opened this issue Jun 9, 2024 · 1 comment

Comments

@devkral
Copy link

devkral commented Jun 9, 2024

Describe the bug

When having an ! in the build path (the cwd not the project name contains an !), react-scripts fails with a cryptic error.

This is quite easy to reproduce.

Steps to reproduce

(Write your steps here:)

  1. create a directory name with ! in it's name, e.g. foo/!A_Kabumm/
  2. switch to the directory
  3. npx create-react-app my-app
  4. cd my-app
  5. npm start

The last command crashes with:
configuration.cache.cacheDirectory: The provided value "/home/alex/tmp/!A_foo/my-app/node_modules/.cache" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.

Expected behavior

It doesn't crash.

I am not sure if it is actually a webpack bug but I found it because of this project.

@devkral
Copy link
Author

devkral commented Jun 9, 2024

sry it seems to be a webpack bug. Close or keep and warn the users?

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

No branches or pull requests

1 participant