Git Product home page Git Product logo

Comments (5)

simsim0709 avatar simsim0709 commented on August 18, 2024

@svenkanna hmm..
It's weird. Do you have .env file in the root of repo?
.env file is required and NODE_PATH=./src should exist.

One more question, which node/npm version do you use?

from react-reduction.

lazzyms avatar lazzyms commented on August 18, 2024

I have the similar issue with, Can't resolve 'components/AuthForm' in 'xx/xx/xxx/react-reduction/src'
And yes, I have .env file with NODE_PATH=./src

Node : 10.1.0
NPM: 6.4.1

from react-reduction.

dheerajmpai avatar dheerajmpai commented on August 18, 2024

Even I have the same error.

from react-reduction.

atulcodex avatar atulcodex commented on August 18, 2024

I found the following error after cloning the code and running npm run start.
./src/App.js
Module not found: Can't resolve 'components/GAListener' in 'xx/xxx/xxx/react-reduction/src/'

However the file does exists but I am not able to find why the error is coming. I tried it on two machines. Both had the problem. Initially I thought it could be machine specific but getting the same error on both the machines, triggered me think that the problem could be something else.

it's just file import error, you have to import file properly like ./ notation

from react-reduction.

prashathr avatar prashathr commented on August 18, 2024

Looks like you are running this on windows, hence the path is unresolved.
To resolve this install the package cross-env
add the below into the package.jon for the start and build
"start": "cross-env NODE_PATH=./src react-scripts start",
"build": "cross-env NODE_PATH=./src react-scripts build",

from react-reduction.

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.