0.1.4 • Published 5 years ago

joys-react-h5-scripts v0.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

joys-react-h5-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-h5-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

V0.1.2

  • update readme
@babel/core@babel/plugin-transform-react-jsx@babel/plugin-transform-react-jsx-self@babel/plugin-transform-react-jsx-source@svgr/webpack@types/enzyme@types/history@types/lodash@types/mockjs@types/react@types/react-dom@types/react-redux@types/react-router@types/react-router-dom@types/react-router-redux@types/redux-mock-store@types/styled-components@typescript-eslint/eslint-plugin@typescript-eslint/parserbabel-corebabel-eslintbabel-jestbabel-loaderbabel-plugin-named-asset-importbabel-polyfillbabel-preset-react-appbabel-runtimebfjbowsercamelcasecase-sensitive-paths-webpack-pluginchalkcss-loaderdotenvdotenv-expanddvadva-loadingenzymeenzyme-adapter-react-16eslinteslint-config-react-appeslint-loadereslint-plugin-flowtypeeslint-plugin-importeslint-plugin-jsx-a11yeslint-plugin-reacteslint-plugin-react-hooksfile-loaderfork-ts-checker-webpack-plugin-altfs-extrah5-px2rem-loaderhtml-webpack-pluginhuskyhygenidentity-obj-proxyimage-webpack-loaderimmutability-helperimmutableis-wsljestjest-clijest-environment-jsdom-fourteenjest-pnp-resolverjest-resolvejest-watch-typeaheadjoys-querystringjoys-utilsloader-utilsmini-css-extract-pluginmockjsnode-sassnumber-precisionoptimize-css-assets-webpack-pluginpleeease-filterspnp-webpack-pluginpostcss-aspect-ratio-minipostcss-flexbugs-fixespostcss-importpostcss-loaderpostcss-normalizepostcss-preset-envpostcss-px-to-viewportpostcss-safe-parserpostcss-selector-matchespostcss-selector-notpostcss-sortingpostcss-viewport-unitsprecssprettierprettier-stylelintpromiserafreact-app-polyfillreact-dev-utilsreact-fastclickreact-intlredux-mock-storeresolvesass-loadersemverservesource-map-loaderstyle-loaderstyled-componentsstylelintstylelint-config-prettierstylelint-config-standardsw-precache-webpack-pluginterser-webpack-plugints-import-plugints-jestts-loaderts-pnptslinttslint-loadertslint-reacttypescripturl-loaderwebpackwebpack-bundle-analyzerwebpack-dev-serverwebpack-manifest-pluginwhatwg-fetchworkbox-webpack-plugin
0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago