Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

razzle projects don't (yarn) start with yarn 2 due to dependency errors. #1172

Closed
laurencefass opened this issue Dec 12, 2019 · 3 comments
Closed

Comments

@laurencefass
Copy link

I cant yarn start any of the razzle apps after rebuilding with yarn v2 (with default pnp) to eliminate node_modules folders. All attempts producing similar errors due to dependency issues. i'm starting with 3 previously working projects and converting using following procedure:

$> yarn policies set-version v2 && yarn --version
(Test that the v2 has been properly selected by running:)

$> yarn install

the install procedure appears to work ok buy yarn start throws a huge amount of errors.

bash-5.0# yarn start
 WAIT  Compiling...


✖ Client
  Compiled with some errors in 4.35s

◯ Server


✖ 「wdm」: Hash: 89fa4c5381760dbc81c7
Version: webpack 4.41.2
Time: 4350ms
Built at: 12/12/2019 2:21:08 PM
                          Asset      Size  Chunks                   Chunk Names
            static/js/bundle.js   199 KiB  client  [emitted]        client
        static/js/bundle.js.map   182 KiB  client  [emitted] [dev]  client
static/media/react.9a28da9f.svg  7.72 KiB          [emitted]
Entrypoint client = static/js/bundle.js static/js/bundle.js.map
[1] multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client 64 bytes {client} [built]
[./.yarn/cache/process-npm-0.11.10-aeb3b641ae-1.zip/node_modules/process/browser.js] 5.29 KiB {client} [built]
[./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js] 7.75 KiB {client} [built]
[./.yarn/cache/url-npm-0.11.0-32ce15acfb-1.zip/node_modules/url/url.js] 22.8 KiB {client} [built]
[./.yarn/cache/webpack-npm-4.41.2-efbe0580aa-1.zip/node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {client} [built]
[./.yarn/cache/webpack-npm-4.41.2-efbe0580aa-1.zip/node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 75 bytes {client} [built]
[./.yarn/cache/webpack-npm-4.41.2-efbe0580aa-1.zip/node_modules/webpack/hot/log-apply-result.js] (webpack)/hot/log-apply-result.js 1.27 KiB
{client} [built]
[./.yarn/cache/webpack-npm-4.41.2-efbe0580aa-1.zip/node_modules/webpack/hot/log.js] (webpack)/hot/log.js 1.34 KiB {client} [built]
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/index.js?http://razzle.syntapse.co.uk] ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk 4.29 KiB {client} [built]
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/overlay.js] 3.51 KiB {client} [built]
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/socket.js] 1.53 KiB {client} [built]
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/createSocketUrl.js] 2.9 KiB {client} [built]
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/log.js] 964 bytes {client} [built]
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/reloadApp.js] 1.59 KiB {client} [built]
[./src/client.js] 516 bytes {client} [built]
    + 24 hidden modules

ERROR in ./src/Home.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/app/razzle/razzle/src'
 @ ./src/Home.js 1:0-68 133:4-19
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/app/razzle/razzle/src'
 @ ./src/Home.js 2:0-62 138:2-14
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/getPrototypeOf' in '/app/razzle/razzle/src'
 @ ./src/Home.js 4:0-68 135:44-59
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/inherits' in '/app/razzle/razzle/src'
 @ ./src/Home.js 5:0-56 130:2-11
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/possibleConstructorReturn' in '/app/razzle/razzle/src'
 @ ./src/Home.js 3:0-90 135:11-37
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/overlay.js
Module not found: Error: Can't resolve 'ansi-html' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/overlay.js 4:15-35
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/overlay.js
Module not found: Error: Can't resolve 'html-entities' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/overlay.js 6:15-39
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/log.js
Module not found: Error: Can't resolve 'loglevel' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/log.js 3:10-29
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/client.js
Module not found: Error: Can't resolve 'react' in '/app/razzle/razzle/src'
 @ ./src/client.js 4:0-26 6:8-13 12:3-8
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/App.js
Module not found: Error: Can't resolve 'react' in '/app/razzle/razzle/src'
 @ ./src/App.js 2:0-26 9:9-14 14:5-10 19:5-10 27:6-11 35:6-11 43:6-11 51:6-11 59:6-11
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve 'react' in '/app/razzle/razzle/src'
 @ ./src/Home.js 7:0-26 13:9-14 18:5-10 23:6-11 28:6-11 36:9-14 41:5-10 46:6-11 51:6-11 59:9-14 64:5-10 69:6-11 74:6-11 82:9-14 87:5-10 92:6-11 97:6-11 105:9-14 110:5-10 115:6-11 120:6-11 141:13-18 147:9-14 152:10-15 158:9-14 166:10-15 171:40-45 176:74-79 182:34-39 187:36-41 192:50-55 198:9-14 203:9-14 209:19-24 214:9-14 220:21-26 225:9-14 236:2-7
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Navbar.js
Module not found: Error: Can't resolve 'react' in '/app/razzle/razzle/src'
 @ ./src/Navbar.js 2:0-26 7:9-14 13:5-10 21:6-11 27:14-19 33:15-20 39:17-22 45:14-19 51:17-22 60:9-14 66:5-10 72:17-22 81:9-14 87:5-10 93:17-22
 @ ./src/Home.js
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js
Module not found: Error: Can't resolve 'react-dev-utils/formatWebpackMessages' in '/app/razzle/razzle/.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils'
 @ ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js 17:28-76
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js
Module not found: Error: Can't resolve 'react-dev-utils/launchEditorEndpoint' in '/app/razzle/razzle/.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils'
 @ ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js 15:27-74
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/client.js
Module not found: Error: Can't resolve 'react-dom' in '/app/razzle/razzle/src'
 @ ./src/client.js 5:0-36 6:0-7
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js
Module not found: Error: Can't resolve 'react-error-overlay' in '/app/razzle/razzle/.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils'
 @ ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js 19:19-49
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve 'react-router-dom' in '/app/razzle/razzle/src'
 @ ./src/Home.js 10:0-40
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Navbar.js
Module not found: Error: Can't resolve 'react-router-dom' in '/app/razzle/razzle/src'
 @ ./src/Navbar.js 3:0-40 21:26-30 27:34-38 33:35-39 39:37-41 45:34-38 51:37-41 66:25-29 72:37-41 87:25-29 93:37-41
 @ ./src/Home.js
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/client.js
Module not found: Error: Can't resolve 'react-router-dom/BrowserRouter' in '/app/razzle/razzle/src'
 @ ./src/client.js 3:0-59 6:28-41
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/App.js
Module not found: Error: Can't resolve 'react-router-dom/Route' in '/app/razzle/razzle/src'
 @ ./src/App.js 3:0-43 19:25-30 27:26-31 35:26-31 43:26-31 51:26-31 59:26-31
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/App.js
Module not found: Error: Can't resolve 'react-router-dom/Switch' in '/app/razzle/razzle/src'
 @ ./src/App.js 4:0-45 14:25-31
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js
Module not found: Error: Can't resolve 'sockjs-client' in '/app/razzle/razzle/.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils'
 @ ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js 9:13-37
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/clients/SockJSClient.js
Module not found: Error: Can't resolve 'sockjs-client/dist/sockjs' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/clients'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/clients/SockJSClient.js 24:13-49
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/socket.js
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js
Module not found: Error: Can't resolve 'strip-ansi' in '/app/razzle/razzle/.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils'
 @ ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js 11:16-37
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
Module not found: Error: Can't resolve 'strip-ansi' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk 6:16-37
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
Module not found: Error: Can't resolve 'webpack/hot' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk 76:17-67
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/reloadApp.js
Module not found: Error: Can't resolve 'webpack/hot/emitter' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/reloadApp.js 21:21-51
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

✖ Client
  Compiled with some errors in 9.96s

● Server █████████████████████████ building (10%) 4/5 modules 1 active
 babel-loader › src/index.js

✖ 「wdm」: Hash: 89fa4c5381760dbc81c7
Version: webpack 4.41.2
Time: 9953ms
Built at: 12/12/2019 2:21:22 PM
                          Asset      Size  Chunks         Chunk Names
            static/js/bundle.js   199 KiB  client         client
        static/js/bundle.js.map   182 KiB  client  [dev]  client
static/media/react.9a28da9f.svg  7.72 KiB
Entrypoint client = static/js/bundle.js static/js/bundle.js.map
[1] multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client 64 bytes {client}
[./.yarn/cache/process-npm-0.11.10-aeb3b641ae-1.zip/node_modules/process/browser.js] 5.29 KiB {client}
[./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js] 7.75 KiB {client}
[./.yarn/cache/url-npm-0.11.0-32ce15acfb-1.zip/node_modules/url/url.js] 22.8 KiB {client}
[./.yarn/cache/webpack-npm-4.41.2-efbe0580aa-1.zip/node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {client}
[./.yarn/cache/webpack-npm-4.41.2-efbe0580aa-1.zip/node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 75 bytes {client}
[./.yarn/cache/webpack-npm-4.41.2-efbe0580aa-1.zip/node_modules/webpack/hot/log-apply-result.js] (webpack)/hot/log-apply-result.js 1.27 KiB
{client}
[./.yarn/cache/webpack-npm-4.41.2-efbe0580aa-1.zip/node_modules/webpack/hot/log.js] (webpack)/hot/log.js 1.34 KiB {client}
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/index.js?http://razzle.syntapse.co.uk] ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk 4.29 KiB {client}
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/overlay.js] 3.51 KiB {client}
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/socket.js] 1.53 KiB {client}
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/createSocketUrl.js] 2.9 KiB {client}
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/log.js] 964 bytes {client}
[./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/reloadApp.js] 1.59 KiB {client}
[./src/client.js] 516 bytes {client}
    + 24 hidden modules

ERROR in ./src/Home.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/app/razzle/razzle/src'
 @ ./src/Home.js 1:0-68 133:4-19
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/app/razzle/razzle/src'
 @ ./src/Home.js 2:0-62 138:2-14
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/getPrototypeOf' in '/app/razzle/razzle/src'
 @ ./src/Home.js 4:0-68 135:44-59
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/inherits' in '/app/razzle/razzle/src'
 @ ./src/Home.js 5:0-56 130:2-11
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/possibleConstructorReturn' in '/app/razzle/razzle/src'
 @ ./src/Home.js 3:0-90 135:11-37
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/overlay.js
Module not found: Error: Can't resolve 'ansi-html' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/overlay.js 4:15-35
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/overlay.js
Module not found: Error: Can't resolve 'html-entities' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/overlay.js 6:15-39
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/log.js
Module not found: Error: Can't resolve 'loglevel' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/log.js 3:10-29
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/client.js
Module not found: Error: Can't resolve 'react' in '/app/razzle/razzle/src'
 @ ./src/client.js 4:0-26 6:8-13 12:3-8
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/App.js
Module not found: Error: Can't resolve 'react' in '/app/razzle/razzle/src'
 @ ./src/App.js 2:0-26 9:9-14 14:5-10 19:5-10 27:6-11 35:6-11 43:6-11 51:6-11 59:6-11
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve 'react' in '/app/razzle/razzle/src'
 @ ./src/Home.js 7:0-26 13:9-14 18:5-10 23:6-11 28:6-11 36:9-14 41:5-10 46:6-11 51:6-11 59:9-14 64:5-10 69:6-11 74:6-11 82:9-14 87:5-10 92:6-11 97:6-11 105:9-14 110:5-10 115:6-11 120:6-11 141:13-18 147:9-14 152:10-15 158:9-14 166:10-15 171:40-45 176:74-79 182:34-39 187:36-41 192:50-55 198:9-14 203:9-14 209:19-24 214:9-14 220:21-26 225:9-14 236:2-7
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Navbar.js
Module not found: Error: Can't resolve 'react' in '/app/razzle/razzle/src'
 @ ./src/Navbar.js 2:0-26 7:9-14 13:5-10 21:6-11 27:14-19 33:15-20 39:17-22 45:14-19 51:17-22 60:9-14 66:5-10 72:17-22 81:9-14 87:5-10 93:17-22
 @ ./src/Home.js
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js
Module not found: Error: Can't resolve 'react-dev-utils/formatWebpackMessages' in '/app/razzle/razzle/.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils'
 @ ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js 17:28-76
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js
Module not found: Error: Can't resolve 'react-dev-utils/launchEditorEndpoint' in '/app/razzle/razzle/.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils'
 @ ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js 15:27-74
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/client.js
Module not found: Error: Can't resolve 'react-dom' in '/app/razzle/razzle/src'
 @ ./src/client.js 5:0-36 6:0-7
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js
Module not found: Error: Can't resolve 'react-error-overlay' in '/app/razzle/razzle/.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils'
 @ ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js 19:19-49
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Home.js
Module not found: Error: Can't resolve 'react-router-dom' in '/app/razzle/razzle/src'
 @ ./src/Home.js 10:0-40
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/Navbar.js
Module not found: Error: Can't resolve 'react-router-dom' in '/app/razzle/razzle/src'
 @ ./src/Navbar.js 3:0-40 21:26-30 27:34-38 33:35-39 39:37-41 45:34-38 51:37-41 66:25-29 72:37-41 87:25-29 93:37-41
 @ ./src/Home.js
 @ ./src/App.js
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/client.js
Module not found: Error: Can't resolve 'react-router-dom/BrowserRouter' in '/app/razzle/razzle/src'
 @ ./src/client.js 3:0-59 6:28-41
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/App.js
Module not found: Error: Can't resolve 'react-router-dom/Route' in '/app/razzle/razzle/src'
 @ ./src/App.js 3:0-43 19:25-30 27:26-31 35:26-31 43:26-31 51:26-31 59:26-31
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./src/App.js
Module not found: Error: Can't resolve 'react-router-dom/Switch' in '/app/razzle/razzle/src'
 @ ./src/App.js 4:0-45 14:25-31
 @ ./src/client.js
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js
Module not found: Error: Can't resolve 'sockjs-client' in '/app/razzle/razzle/.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils'
 @ ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js 9:13-37
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/clients/SockJSClient.js
Module not found: Error: Can't resolve 'sockjs-client/dist/sockjs' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/clients'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/clients/SockJSClient.js 24:13-49
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/socket.js
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js
Module not found: Error: Can't resolve 'strip-ansi' in '/app/razzle/razzle/.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils'
 @ ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js 11:16-37
 @ multi ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
Module not found: Error: Can't resolve 'strip-ansi' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk 6:16-37
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
Module not found: Error: Can't resolve 'webpack/hot' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk 76:17-67
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

ERROR in ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/reloadApp.js
Module not found: Error: Can't resolve 'webpack/hot/emitter' in '/app/razzle/razzle/.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils'
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client/utils/reloadApp.js 21:21-51
 @ ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk
 @ multi ./.yarn/virtual/webpack-dev-server-virtual-94b4aece98/0/cache/webpack-dev-server-npm-3.9.0-e9c2d8aa12-1.zip/node_modules/webpack-dev-server/client?http://razzle.syntapse.co.uk (webpack)/hot/dev-server.js ./.yarn/cache/razzle-dev-utils-npm-3.0.0-d8014d9bfe-1.zip/node_modules/razzle-dev-utils/webpackHotDevClient.js ./src/client

✖ Client
  Compiled with some errors in 9.96s

✖ Server
  Compiled with some errors in 14.11s

as stated projects work fine with yarn v1/yarn start.

thanks

@laurencefass
Copy link
Author

laurencefass commented Dec 12, 2019

As Razzle is using webpack i've tried adding https://github.com/arcanis/pnp-webpack-plugin and configuring according to its instructions. This yields the same result. i.e. yarn start dependency errors.

@laurencefass laurencefass changed the title razzle projects don't work with yarn 2. cant yarn start due to dependency errors. razzle projects don't (yarn) start with yarn 2 due to dependency errors. Dec 12, 2019
@laurencefass
Copy link
Author

laurencefass commented Dec 12, 2019

package.json

{
  "name": "my-razzle-app",
  "version": "0.1.0",
  "license": "MIT",
  "scripts": {
    "start": "razzle start",
    "build": "razzle build",
    "test": "razzle test --env=jsdom",
    "start:prod": "NODE_ENV=production node build/server.js"
  },
  "dependencies": {
    "express": "^4.17.1",
    "razzle": "^3.0.0",
    "razzle-plugin-proxy": "^1.3.3",
    "react": "^16.11.0",
    "react-dom": "^16.11.0",
    "react-router-dom": "^5.1.2"
  },
  "devDependencies": {
    "pnp-webpack-plugin": "^1.5.0"
  }
}

razzle.config.js

'use strict';

const PnpWebpackPlugin = require(`pnp-webpack-plugin`);

module.exports = {
  resolve: {
    plugins: [
      PnpWebpackPlugin,
    ],
  },
  resolveLoader: {
    plugins: [
      PnpWebpackPlugin.moduleLoader(module),
    ],
  },
  modify(config, { target, dev }, webpack) {
    const appConfig = config;
    if ( target==='web' && dev ) {
      appConfig.devServer.sockPath = "/razzle-dev/webpack/sockjs-node";
    }
    return appConfig;
  },
  plugins: ['proxy'],
};

@fivethreeo
Copy link
Collaborator

#896

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants