In my package.json file, I have below dependencies installed at a NestJS project. It was working fine until I upgraded NestJS version 7 to 8. Its probably something to do with ts | js transform stuff. Any clue?
"@nestjs/axios": "^0.0.8",
"@nestjs/common": "^8.4.7",
"@nestjs/core": "^8.4.7",
"@nestjs/passport": "^8.2.2",
"@nestjs/platform-express": "^8.4.7",
"@nestjs/swagger": "^5.2.1",
"@nestjs/typeorm": "^8.1.4",
"@nestjsx/crud": "^5.0.0-alpha.3",
"@nestjsx/crud-typeorm": "^5.0.0-alpha.3",
"@types/body-parser": "^1.19.2",
"@types/json-merge-patch": "0.0.8",
"body-parser": "^1.20.0",
"camelcase-keys": "^8.0.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
"dotenv": "^16.0.1",
"express-async-errors": "^3.1.1",
"json-merge-patch": "^1.0.2",
"passport": "^0.6.0",
"passport-http-bearer": "^1.0.1",
"pg": "^8.7.3",
"reflect-metadata": "^0.1.13",
"swagger-ui-express": "^4.4.0",
"typeorm": "^0.3.6",
"winston": "^3.7.2"
Error Details
`({"Object.":function(module,exports,require,dirname,filename,jest){import mapObject from 'map-obj';
SyntaxError: Cannot use import statement outside a module`
In my package.json file, I have below dependencies installed at a NestJS project. It was working fine until I upgraded NestJS version 7 to 8. Its probably something to do with ts | js transform stuff. Any clue?
Error Details `({"Object.":function(module,exports,require,dirname,filename,jest){import mapObject from 'map-obj';
SyntaxError: Cannot use import statement outside a module`