Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding react-wp-scripts to existing CRA + Expo project #74

Open
Ririshi opened this issue Mar 21, 2021 · 0 comments
Open

Adding react-wp-scripts to existing CRA + Expo project #74

Ririshi opened this issue Mar 21, 2021 · 0 comments

Comments

@Ririshi
Copy link

Ririshi commented Mar 21, 2021

I am working on a pretty complex project that combines React and React native, as we ship a smartphone app and a web app with the same underlying structure. The web app is implemented as a plugin for a Wordpress website. The project was initially set up using create-react-app and expo.

I would love to be able to speed up our dev progress for the webapp, as building and copying the build over into a local Wordpress environment is tedious and slow. But, I am not entirely sure how to integrate react-wp-scripts into our current setup. Could someone perhaps provide advice on how to use this package with an existing project?

When trying to set up a dummy project to see how it would work, I got this error after yarn installed dependencies (I replaced the real path with <project_path>):

Could not locate supplied template: <project_path>/cra-template
React WP Scripts loader could not be copied to your root folder. Error details:
Error: ENOENT: no such file or directory, open '<project_path>/src/index.js'

Running npx create-react-app --version gives me 4.0.3, is this project not compatible with versions above CRA v2?

Hoping to get a bit of clarification :)

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

No branches or pull requests

1 participant