Comments (5)
@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.
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.
Even I have the same error.
from react-reduction.
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.
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)
- Dashboard Horizontal Avatar List Flicker HOT 1
- Add 'How to contribute' HOT 1
- Footer is not fixed to bottom HOT 1
- Build Problem HOT 1
- unable to push to history on Logout button in Header.js HOT 2
- Overflowing
- build issue HOT 1
- Does not work in IE11
- Unable to catch all unregistered route without main layout
- Redirecting to https://reduction-admin.github.io/react-reduction/
- npm i isn't working HOT 1
- after npm install HOT 4
- dont understand HOT 1
- user card doesn't get close on clicking outside HOT 5
- daal
- Error while installing the node packages HOT 5
- Account dropdown border covers
- Getting an error while npm install and npm run start command HOT 1
- error after npm install HOT 1
- Modal and Javascript don't work with vite
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-reduction.