spin error WebpackOptionsValidationError
sis-dk opened this issue · 2 comments
sis-dk commented
What I did?
- git clone https://github.com/sysgears/create-apollo-app.git
- yarn create apollo-app my-app@mobile
- cd my-app/
- yarn start
What the problem is?
- After yarn start, it throws this error,
yarn run v1.9.4
$ spin start
spin error WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.module.rules[0] has an unknown property 'type'. These properties are valid:
object { enforce?, exclude?, include?, issuer?, loader?, loaders?, oneOf?, options?, parser?, query?, resource?, resourceQuery?, compiler?, rules?, test?, use? }
-> A rule
at webpack (/home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/webpack/lib/webpack.js:19:9)
at /home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/spinjs/src/executor.ts:717:24
at new Promise (<anonymous>)
at buildDll (/home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/spinjs/src/executor.ts:705:10)
at runBuilder (/home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/spinjs/src/executor.ts:1022:57)
at Object.execute (/home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/spinjs/src/executor.ts:1147:5)
at Object.<anonymous> (/home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/spinjs/src/cli.ts:42:12)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
(node:1752) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated
spin error WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.module.rules[0] has an unknown property 'type'. These properties are valid:
object { enforce?, exclude?, include?, issuer?, loader?, loaders?, oneOf?, options?, parser?, query?, resource?, resourceQuery?, compiler?, rules?, test?, use? }
-> A rule
at webpack (/home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/webpack/lib/webpack.js:19:9)
at /home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/spinjs/src/executor.ts:717:24
at new Promise (<anonymous>)
at buildDll (/home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/spinjs/src/executor.ts:705:10)
at runBuilder (/home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/spinjs/src/executor.ts:1022:57)
at Object.execute (/home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/spinjs/src/executor.ts:1147:5)
at Object.<anonymous> (/home/sisir/Atomic-Design/create-apollo-app/my-app/node_modules/spinjs/src/cli.ts:42:12)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
(node:1744) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated