-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
./postcss.config.js: Error [ERRUNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'). Since version 14.1.2-canary.4 #63359
Comments
The second problem: Since version 14.1.2-canary.4, the project just won't even open in dev mode ./src/app/globals.css |
The posts developers replied to me that these are your problems. You can find my post CSS config at the link |
one of the 2 problems has been solved #63109 |
Having the same issue here, Canary (14.2.0-canary.26) seems to be working fine when disabling Turbopack on Windows. |
Renaming |
It really helped, but it's weird. As if it needs to be fixed anyway. |
----worked for me too |
…ths (#64386) ### What? Fixes #64371 Fixes #63359 Closes PACK-2946 --------- Co-authored-by: Tim Neutkens <[email protected]> Co-authored-by: Jiachi Liu <[email protected]>
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/MrOxMasTer/shopco
To Reproduce
OR to check for another error:
Current vs. Expected behavior
complete project
Provide environment information
Operating System: Platform: win32 Arch: x64 Version: Windows 11 Pro Available memory (MB): 16320 Available CPU cores: 6 Binaries: Node: 20.11.1 npm: N/A Yarn: N/A pnpm: N/A Relevant Packages: next: 14.1.2-canary.3 // There is a newer canary version (14.2.0-canary.24) available, please upgrade! eslint-config-next: 14.1.3 react: 18.2.0 react-dom: 18.2.0 typescript: 5.4.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
App Router, CLI (create-next-app), Font optimization (next/font), Module resolution (CJS / ESM, module resolving)
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local)
Additional context
The first problem:
the project is not going to be built on version 14.1.2-canary.3. With "type": "module" in package.json
src\app\layout.tsx
An error occurred in next/font.
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\Алексей\OneDrive\Рабочий стол\PetProjects\shopco\postcss.config.js from C:\Users\Алексей\OneDrive\Рабочий стол\PetProjects\shopco\node_modules.pnpm\[email protected][email protected][email protected]\node_modules\next\dist\lib\find-config.js not supported.
Instead change the require of postcss.config.js in C:\Users\Алексей\OneDrive\Рабочий стол\PetProjects\shopco\node_modules.pnpm\[email protected][email protected][email protected]\node_modules\next\dist\lib\find-config.js to a dynamic import() which is available in all CommonJS modules.
at mod.require (C:\Users\Алексей\OneDrive\Рабочий стол\PetProjects\shopco\node_modules.pnpm\[email protected][email protected][email protected]\node_modules\next\dist\server\require-hook.js:65:28)
at findConfig (C:\Users\Алексей\OneDrive\Рабочий стол\PetProjects\shopco\node_modules.pnpm\[email protected][email protected][email protected]\node_modules\next\dist\lib\find-config.js:58:20)
at async getPostCssPlugins (C:\Users\Алексей\OneDrive\Рабочий стол\PetProjects\shopco\node_modules.pnpm\[email protected][email protected][email protected]\node_modules\next\dist\build\webpack\config\blocks\css\plugins.js:89:18)
at async C:\Users\Алексей\OneDrive\Рабочий стол\PetProjects\shopco\node_modules.pnpm\[email protected][email protected][email protected]\node_modules\next\dist\build\webpack\config\blocks\css\index.js:124:36
The text was updated successfully, but these errors were encountered: