Closed L-Steinmacher closed 1 year ago
Thanks! I'm pretty sure if you stop and start the app again it'll work. This probably has to do with the build output from remix not being ready when the server is ready. This is weird and something I should work on finding a fix for (I have ideas), but there's a workaround until I get to it.
Yes! Restarting the app does work! Thank you!
I can't tell if the original post error and this one are related but I did get this error and was not able to reproduce it. It did resolve itself after restarting the app is the only reason that I feel they may be related.
lesson: http://localhost:5639/21/03/problem Browser: Chrome
[playground:4000]
[playground:4000] SyntaxError: The requested module '@prisma/client' does not provide an export named 'PrismaClient'
[playground:4000] /Users/Panzermensch/Desktop/Projects/web-auth/playground/app/utils/db.server.ts:2
[playground:4000] import { PrismaClient } from '@prisma/client'
[playground:4000] ^
[playground:4000]
[playground:4000] SyntaxError: The requested module '@prisma/client' does not provide an export named 'PrismaClient'
[playground:4000] at ModuleJob._instantiate (node:internal/modules/esm/module_job:122:21)
[playground:4000] at async ModuleJob.run (node:internal/modules/esm/module_job:188:5)
[playground:4000] at async CustomizedModuleLoader.import (node:internal/modules/esm/loader:228:24)
[playground:4000] at FSWatcher.reloadBuild (/Users/Panzermensch/Desktop/Projects/web-auth/playground/server/index.ts:172:14)
[playground:4000]
Looks like setting to playground didn't work in that case. Clicking the link icon again will re-set it to the playground and that should fix it.
I should definitely document these workarounds somewhere (in addition to making it more resilient to issues like this).
I experienced a few errors in the app when loading a lesson from Mock GitHub OAuth into the playground.
Stack Error