joys-react-scripts
TypeScript icon, indicating that this package has built-in type declarations

2.0.16 • Public • Published

joys-react-scripts

This package includes scripts and configuration used by Create React App. Please refer to its documentation:

  create-react-app my-app --scripts-version=joys-react-scripts

Then cd my-app, yarn eject, yarn start can start APP normally.

FAQ

Prompt type error at startup

Type error: Argument of type '({ history }: SubscriptionAPI) => Element' is not assignable to parameter
 of type 'Router'.
  Types of parameters '__0' and 'api' are incompatible.
    Type 'RouterAPI | undefined' is not assignable to type 'SubscriptionAPI'.
      Type 'undefined' is not assignable to type 'SubscriptionAPI'.  TS2345

    22 | };
    23 |
  > 24 | app.router(router);
       |            ^
    25 | app.start(document.getElementById('root'));
    26 | registerServiceWorker();
    27 |

After you create the app, you need to execute yarn eject and start the app

this.htmlWebpackPlugin.getHooks is not a function

"html-webpack-plugin": "^4.0.0-beta.2"

Changelog

V1.2.41

  • Upgrade to the latest dependencies

Package Sidebar

Install

npm i joys-react-scripts

Weekly Downloads

1

Version

2.0.16

License

MIT

Unpacked Size

215 kB

Total Files

90

Last publish

Collaborators

  • bearcookie