Code Monkey home page Code Monkey logo

./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 about next.js HOT 10 CLOSED

MrOxMasTer avatar MrOxMasTer commented on May 24, 2024 3
./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

from next.js.

Comments (10)

EliasVal avatar EliasVal commented on May 24, 2024 12

Renaming postcss.config.js to postcss.config.cjs did the trick for me.

from next.js.

mike-kholin avatar mike-kholin commented on May 24, 2024 2

Renaming postcss.config.js to postcss.config.cjs did the trick for me.

It really helped, but it's weird. As if it needs to be fixed anyway.

----worked for me too

from next.js.

MrOxMasTer avatar MrOxMasTer commented on May 24, 2024

The second problem:

Since version 14.1.2-canary.4, the project just won't even open in dev mode

./src/app/globals.css
Error evaluating Node.js code
Error: Failed to load external module C:\Users\Asus\Desktop\petProjects\shopco/./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:'
at externalImport (/turbopack/[turbopack]/shared-node/base-externals-utils.ts:16:11) [C:\Users\Asus\Desktop\petProjects\shopco.next\chunks[output]__next_transform_ad1f0f.js:1318:15]
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async (postcss.config.js.loader.mjs:3:13) [C:\Users\Asus\Desktop\petProjects\shopco.next\chunks_0b8f1c._.js:11:13]

image
image

from next.js.

MrOxMasTer avatar MrOxMasTer commented on May 24, 2024

postcss/postcss#1931

The posts developers replied to me that these are your problems. You can find my post CSS config at the link

from next.js.

MrOxMasTer avatar MrOxMasTer commented on May 24, 2024

next.js config
image

ts.config
image

from next.js.

MrOxMasTer avatar MrOxMasTer commented on May 24, 2024

Just the latest version next.js
image

image

from next.js.

MrOxMasTer avatar MrOxMasTer commented on May 24, 2024

one of the 2 problems has been solved #63109

from next.js.

EliasVal avatar EliasVal commented on May 24, 2024

Having the same issue here, Canary (14.2.0-canary.26) seems to be working fine when disabling Turbopack on Windows.
Seems to be working fine in a Linux environment

from next.js.

MrOxMasTer avatar MrOxMasTer commented on May 24, 2024

Renaming postcss.config.js to postcss.config.cjs did the trick for me.

It really helped, but it's weird. As if it needs to be fixed anyway.

from next.js.

github-actions avatar github-actions commented on May 24, 2024

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.

from next.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.