headlesscms.org icon indicating copy to clipboard operation
headlesscms.org copied to clipboard

`.babelrc` doesn't seem to be loaded by react-static

Open Saw-mon-and-Natalie opened this issue 6 years ago • 1 comments

When I run:

npm start or npm run build, I get the following errors:

Error: Cannot find module 'Scripts/util'

Looks like Scripts is a path alias defined in the .babelrc file.

Saw-mon-and-Natalie avatar Aug 16 '19 00:08 Saw-mon-and-Natalie

@Saw-mon-and-Natalie

I couldn't reproduce this.

horie at MBP in ~/src/github.com/netlify/headlesscms.org on master
$ npm start

> [email protected] start /Users/horie/src/github.com/netlify/headlesscms.org
> react-static start

=> Building Routes...
=> [✓] Routes Built: 97.353ms
=> Building App Bundle...
=> [✓] Build Complete: 4451.993ms
=> [✓] App serving at http://localhost:3000

It looks the file exists.

https://github.com/netlify/headlesscms.org/blob/master/scripts/util.js

is2ei avatar Dec 20 '19 00:12 is2ei