You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had the same problem when following the tutorial. It seems to be caused by the fact that the build script does not copy data.json from src to dist. (This repo currently includes /dist/data.json in there so it gets round the problem but this means there are now two files to maintain).
A better solution would be one of the following:
Move data.json into the root of the project and change the reference to '../../data' (better still a subdirectory of the root)
Amend the build script so it copies data.json from src into the dist directory
Cannot find module '../data' (const Heroes = require('../data');)
when using npm start i am getting this error plz help
The text was updated successfully, but these errors were encountered: