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

Internal Server Error when running fresh install as logged in user #1845

Open
guidance-mattfc opened this issue Jan 3, 2025 · 2 comments
Open

Comments

@guidance-mattfc
Copy link

guidance-mattfc commented Jan 3, 2025

Describe the bug
With a freshly cloned repo, just with .env.local populated, the site gives Internal Server Error on all pages after authenticating.

To Reproduce
Steps to reproduce the behavior:

  1. Clone repo
  2. Update .env.local
  3. Run pnpm install
  4. Run pnpm run dev
  5. Navigate to login page and login
  6. Navigate to any page
  7. Refresh.
  8. Note errors
@bigcommerce/catalyst-core:dev:  ⨯ [Error: Could not find the module "(app-pages-browser)/../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/client/components/layout-router.js" in the React Server Consumer Manifest. This is probably a bug in the React Server Components bundler.] {
@bigcommerce/catalyst-core:dev:   digest: '2480382964'
@bigcommerce/catalyst-core:dev: }
@bigcommerce/catalyst-core:dev: Error: Could not find the module "(app-pages-browser)/../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/client/components/client-page.js" in the React Server Consumer Manifest. This is probably a bug in the React Server Components bundler. {
@bigcommerce/catalyst-core:dev:
@bigcommerce/catalyst-core:dev: }
@bigcommerce/catalyst-core:dev:  ⨯ Error: Could not find the module "(app-pages-browser)/../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/client/components/client-page.js" in the React Server Consumer Manifest. This is probably a bug in the React Server Components bundler. {
@bigcommerce/catalyst-core:dev:
@bigcommerce/catalyst-core:dev: }
@bigcommerce/catalyst-core:dev:  ⨯ TypeError: Cannot read properties of null (reading 'default') {  }
@bigcommerce/catalyst-core:dev:  GET / 500 in 161ms

Expected behavior
Errors should not be happening

Screenshots
If applicable, add screenshots to help explain your problem.

image
image

Additional context
Errors were introduced when turbo was disabled in 1f0c2ef

Reenabling turbo with --turbo gives the following error:

@bigcommerce/catalyst-core:dev:  ⨯ ReferenceError: e is not defined
@bigcommerce/catalyst-core:dev:     at Module.Kind (C:\Projects\temp2\core\.next\server\chunks\08b5e__pnpm_e52ea7._.js:20179:18)
@bigcommerce/catalyst-core:dev:     at [project]/core/app/favicon.ico/route.ts [app-route] (ecmascript) (file://C%3A/Projects/temp2/core/core/app/favicon.ico/route.ts:17:32)
@bigcommerce/catalyst-core:dev:     at instantiateModule (C:\Projects\temp2\core\.next\server\chunks\[turbopack]_runtime.js:590:23)
@bigcommerce/catalyst-core:dev:     at getOrInstantiateModuleFromParent (C:\Projects\temp2\core\.next\server\chunks\[turbopack]_runtime.js:645:12)
@bigcommerce/catalyst-core:dev:     at esmImport (C:\Projects\temp2\core\.next\server\chunks\[turbopack]_runtime.js:132:20)
@bigcommerce/catalyst-core:dev:     at instantiateModule (C:\Projects\temp2\core\.next\server\chunks\[turbopack]_runtime.js:590:23)
@bigcommerce/catalyst-core:dev:     at instantiateRuntimeModule (C:\Projects\temp2\core\.next\server\chunks\[turbopack]_runtime.js:653:12)
@bigcommerce/catalyst-core:dev:     at Object.getOrInstantiateRuntimeModule (C:\Projects\temp2\core\.next\server\chunks\[turbopack]_runtime.js:669:12)
@bigcommerce/catalyst-core:dev:     at Object.<anonymous> (C:\Projects\temp2\core\.next\server\app\favicon.ico\route.js:8:26)
@bytesizelabsukltd
Copy link

Did you manage to fix this? Getting the exact same error after fresh install @guidance-mattfc

@cmeagher-rwy
Copy link

I am also seeing this error. For me it happens with @bigcommerce/[email protected] when I add any querystring to a URL e.g. http://localhost:3000/?test=test. Without the querystring there is no error.

A colleague has reproduced the error also, but has found that he doesn't get the error when checking out the canary branch.

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

3 participants