Issue with nestjs-console
Run in development
npx ts-node -r tsconfig-paths/register src/cli.ts test test
Test
Build app with package
npm run build
> nestjs-console-issue@0.0.1 prebuild /home/hex/Sandbox/nestjs-console-issue
> rimraf dist
> nestjs-console-issue@0.0.1 build /home/hex/Sandbox/nestjs-console-issue
> nest build
node_modules/nestjs-console/dist/helpers.d.ts:1:8 - error TS1259: Module '"/home/hex/Sandbox/nestjs-console-issue/node_modules/nestjs-console/node_modules/ora/index"' can only be d
efault-imported using the 'esModuleInterop' flag
1 import ora from 'ora';
~~~
node_modules/nestjs-console/node_modules/ora/index.d.ts:269:1
269 export = ora;
~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
node_modules/nestjs-console/dist/interfaces.d.ts:1:8 - error TS1259: Module '"/home/hex/Sandbox/nestjs-console-issue/node_modules/commander/typings/index"' can only be default-impo
rted using the 'esModuleInterop' flag
1 import commander from 'commander';
~~~~~~~~~
node_modules/commander/typings/index.d.ts:386:1
386 export = commander;
~~~~~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
Found 2 error(s).
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nestjs-console-issue@0.0.1 build: `nest build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nestjs-console-issue@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/hex/.npm/_logs/2020-04-29T16_46_46_293Z-debug.log
Run in production after failed build
node dist/cli.js test test
Test
App generated by default nestjs cli
A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
Description
Nest framework TypeScript starter repository.
Installation
$ npm install
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Test
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Stay in touch
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
License
Nest is MIT licensed.