SolidJSS
SolidJSโ€ข3y agoโ€ข
8 replies
Lo | Building Dromo

*Npm Run Start* Fails To Mysterious Error

Is there a recommended way to debug solid-start start? I'm running into this issue where my app fails after I build, but in solid-start dev everything is fine. This is the error I'm getting:

file://this/file/path/frontend/dist/server.js:17013
  const id = sharedConfig.context.id + sharedConfig.context.count++;
                                  ^
TypeError: Cannot read properties of undefined (reading 'id')
at createResource (file:///path/to/my/app/dist/server.js:17013:35)
at file:///path/to/my/app/dist/server.js:20340:1
at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24)

I also tried npm --loglevel verbose run build and DEBUG=1 npm run build but neither didn't help uncover what the error is related to..
Was this page helpful?