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

TypeError: Cannot read property 'theme' of undefined #4

Open
slavakurilyak opened this issue Jul 25, 2021 · 0 comments
Open

TypeError: Cannot read property 'theme' of undefined #4

slavakurilyak opened this issue Jul 25, 2021 · 0 comments

Comments

@slavakurilyak
Copy link

Running $ yarn dev gives me:

yarn run v1.22.10
$ BROWSERSLIST_IGNORE_OLD_DATA=false next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
warn - As of Tailwind CSS v2.2, `lightBlue` has been renamed to `sky`.
warn - Please update your color palette to eliminate this warning.
error - ./node_modules/next/dist/client/dev/amp-dev.js
TypeError: Cannot read property 'theme' of undefined
event - build page: /next/dist/pages/_error
wait  - compiling...
error - ./node_modules/next/dist/client/dev/amp-dev.js
TypeError: Cannot read property 'theme' of undefined
Error: Cannot find module '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/.next/server/pages-manifest.json'
Require stack:
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/require.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/load-components.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/api-utils.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/next-server.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/server/next.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/server/lib/start-server.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/cli/next-dev.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/bin/next
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:927:15)
    at Function.mod._resolveFilename (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/build/webpack/require-hook.js:4:1855)
    at Function.Module._load (node:internal/modules/cjs/loader:772:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at getPagePath (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/require.js:1:735)
    at requirePage (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/require.js:1:1397)
    at loadComponents (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/load-components.js:1:1289)
    at DevServer.findPageComponents (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/next-server.js:77:296)
    at DevServer.renderErrorToHTML (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/next-server.js:139:209) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/require.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/load-components.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/api-utils.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/next-server.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/server/next.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/server/lib/start-server.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/cli/next-dev.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/bin/next'
  ]
}
Error: Cannot find module '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/.next/fallback-build-manifest.json'
Require stack:
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/load-components.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/api-utils.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/next-server.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/server/next.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/server/lib/start-server.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/cli/next-dev.js
- /Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/bin/next
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:927:15)
    at Function.mod._resolveFilename (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/build/webpack/require-hook.js:4:1855)
    at Function.Module._load (node:internal/modules/cjs/loader:772:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at loadDefaultErrorComponents (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/load-components.js:1:652)
    at DevServer.renderErrorToHTML (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/next-server.js:139:962)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async DevServer.render (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/next-server.js:75:160)
    at async Object.fn (/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/next-server.js:58:672) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/load-components.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/api-utils.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/next-server/server/next-server.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/server/next.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/server/lib/start-server.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/cli/next-dev.js',
    '/Users/skurilyak/dev/slavakurilyak/slava.writeinpublic.eth-v2/node_modules/next/dist/bin/next'
  ]
}
wait  - compiling...
error - ./node_modules/next/dist/client/dev/amp-dev.js
TypeError: Cannot read property 'theme' of undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant