SimonHoiberg / saas-template

SaaS template for AWS, Amplify, React, NextJS and Chakra
MIT License
686 stars 174 forks source link

Error when npm run dev #8

Open SHaiderX opened 12 months ago

SHaiderX commented 12 months ago

I followed all the steps, double checked, redid it, when I run 'npm run dev', I get this error. Please let me know if I'm forgetting to install anything that wasn't mentioned in the readme.

Error:

return new TSError(diagnosticText, diagnosticCodes, diagnostics);
       ^

TSError: ⨯ Unable to compile TypeScript: error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node12', 'nodenext'.

at createTSError (C:\Users\haide\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:859:12)
at reportTSError (C:\Users\haide\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:863:19)
at createFromPreloadedConfig (C:\Users\haide\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:874:36)
at phase4 (C:\Users\haide\AppData\Roaming\npm\node_modules\ts-node\src\bin.ts:543:44)
at bootstrap (C:\Users\haide\AppData\Roaming\npm\node_modules\ts-node\src\bin.ts:95:10)
at main (C:\Users\haide\AppData\Roaming\npm\node_modules\ts-node\src\bin.ts:55:10)
at Object.<anonymous> (C:\Users\haide\AppData\Roaming\npm\node_modules\ts-node\src\bin.ts:800:3)
at Module._compile (node:internal/modules/cjs/loader:1226:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1280:10)
at Module.load (node:internal/modules/cjs/loader:1089:32) {

diagnosticCodes: [ 6046 ] }