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

Yarn error with postcss: ERR_INVALID_FILE_URL_PATH #281

Closed
andry900 opened this issue Oct 12, 2022 · 1 comment
Closed

Yarn error with postcss: ERR_INVALID_FILE_URL_PATH #281

andry900 opened this issue Oct 12, 2022 · 1 comment

Comments

@andry900
Copy link

I have been experiencing this error for a few weeks, I also found another report for the same problem in this incident: PostCSS incident but it still has no answers.

Since the problem is very impactful as it no longer allows me to work on the project, I would like to know as soon as possible how to solve it.
3 of us are working on this project, my colleagues who use PC with MacOS as operating system have no problems, it happens only on my PC with Windows.

This is the error trace after executing the yarn start command:
`Starting the development server...

C:\Users\XXX\projects\YYY\node_modules\react-scripts\scripts\start.js:19
throw err;
^

TypeError: File URL path must be absolute
at new NodeError (node:internal/errors:387:5)
at getPathFromURLWin32 (node:internal/url:1407:11)
at fileURLToPath (node:internal/url:1437:22)
at Input.origin (C:\Users\XXX\projects\YYY\node_modules\react-scripts\node_modules\postcss\lib\input.js:202:23)
at Input.error (C:\Users\XXX\projects\YYY\node_modules\react-scripts\node_modules\postcss\lib\input.js:133:23)
at Declaration.error (C:\Users\XXX\projects\YYY\node_modules\react-scripts\node_modules\postcss\lib\node.js:60:32)
at Warning.toString (C:\Users\XXX\projects\YYY\node_modules\react-scripts\node_modules\postcss\lib\warning.js:21:24)
at new Error ()
at new Warning (C:\Users\XXX\projects\YYY\node_modules\react-scripts\node_modules\postcss-loader\dist\Warning.js:15:5)
at Object.loader (C:\Users\XXX\projects\YYY\node_modules\react-scripts\node_modules\postcss-loader\dist\index.js:149:22) {
code: 'ERR_INVALID_FILE_URL_PATH'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`

@ai
Copy link
Member

ai commented Oct 12, 2022

  1. Seems like you need to open an issue in postcss/postcss not in PostCSS website repo
  2. This PR may be relevant to your problem fix: absolute: true source maps will preserve source content postcss#1788

@ai ai closed this as completed Oct 12, 2022
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

2 participants