I use a similar structure of this example, during compilation of functions:
tsc --project src/functions
I got this error:
node_modules/next/types/index.d.ts:8:21 - error TS2307: Cannot find module '../lib/load-env-config'.
System information
- OS: (K)Ubuntu 19.10
- Version of Node: 10.19.0
- Version of Next.js: 9.3.2