Skip to content

After ejecting, can't run start server #23

@ppsreejith

Description

@ppsreejith

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions