Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

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

Open
Saw-mon-and-Natalie opened this issue Aug 16, 2019 · 1 comment
Open

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

Saw-mon-and-Natalie opened this issue Aug 16, 2019 · 1 comment

Comments

@Saw-mon-and-Natalie
Copy link

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 Saw-mon-and-Natalie changed the title .babelrc doesn't seem to be loaded by react-static .babelrc doesn't seem to be loaded by react-static Aug 16, 2019
@is2ei
Copy link

is2ei commented Dec 20, 2019

@Saw-mon-and-Natalie

I couldn't reproduce this.

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

> headlesscms@2.0.0 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants