create-react-extension icon indicating copy to clipboard operation
create-react-extension copied to clipboard

After ejecting, can't run start server

Open ppsreejith opened this issue 4 years ago • 1 comments

Describe the bug

After ejecting, if I try to run yarn start, it fails with the following error:

Cannot find module './utils/copyPublicFolder'

Did you try recovering your dependencies?

Yes

Which terms did you search for in User Guide?

This is an issue with create-react-extension

Environment

Environment Info:

  Binaries:
    Node: 14.15.4 - ~/.nvm/versions/node/v14.15.4/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v14.15.4/bin/yarn
    npm: 6.14.10 - ~/.nvm/versions/node/v14.15.4/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 86.0
  npmPackages:
    react: ^17.0.1 => 17.0.1 
    react-dom: ^17.0.1 => 17.0.1 
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

(Write your steps here:)

  1. yarn create react-app my-browser-extension --scripts-version react-browser-extension-scripts --template browser-extension
  2. yarn eject
  3. yarn start

Expected behavior

I expected yarn start to start the server.

Actual behavior

yarn start failed with error:

yarn run v1.22.10
$ node scripts/start.js
Cannot find module './utils/copyPublicFolder'
Require stack:
- /path/to/project/browser-ext/scripts/start.js
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproducible demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

ppsreejith avatar Mar 12 '21 05:03 ppsreejith

I will check the attached MR this weekend (at the latest) and get this merged in and released

VasilyShelkov avatar Mar 30 '21 08:03 VasilyShelkov