Skip to content

Commit b685430

Browse files
authored
Add a note about modules missing from dependencies (#2298)
1 parent e0b86de commit b685430

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

js/frameworks/nextjs.html.markerb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,14 @@ Follow the instructions in the message, and then redeploy:
274274
npm i sharp
275275
fly deploy
276276
```
277+
278+
### Cannot find module
279+
280+
Your app doesn't start and you see an error like the following in your logs:
281+
```
282+
`Cannot find module 'typescript'`
283+
```
284+
285+
Verify that the missing module appears in `package.json`'s `dependencies`, not just `devDependencies`. If you're using a Dockerfile generated by `dockerfile-node`, your image will be optimized for production and omit development dependencies by default.
286+
287+
If the module is missing, add it to `dependencies` and re-deploy.

0 commit comments

Comments
 (0)