A
A
Alexey Yakovlev2020-06-20 10:16:49
npm
Alexey Yakovlev, 2020-06-20 10:16:49

Error when starting the server on React, how to fix it?

I just created a project and run - npm start and an error pops up - ./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules /postcss-loader/src??postcss!./src/index.css)
Error: Package exports for 'C:\Users\Alexey\Desktop\Desktop\Mackets\react-pizza\node_modules\autoprefixer\node_modules\kleur' ​​do not define a valid './colors' target

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alpeg, 2020-06-20
@aleshaykovlev

Updating node.js solves the problem.
=====
Attention! If the version of the node you need is not installed on Windows 7 (requires Windows 8+), then you need:
UPD:
option 1. just install the LTS version
option 2. Only if you need a non-LTS version, I gave detailed instructions in the comment.

A
Azhukov, 2020-06-20
@Azhukov

Same error but when running Vue project

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question