Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build production verions of library #443

Open
dagi12 opened this issue Sep 27, 2018 · 0 comments
Open

Cannot build production verions of library #443

dagi12 opened this issue Sep 27, 2018 · 0 comments

Comments

@dagi12
Copy link

dagi12 commented Sep 27, 2018

  • I'm submitting a ...
    [x] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository

  • What is the current behavior?

  1. Clone the repository
  2. Run npm install
  3. Run npm run build
  4. You get following error
> node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "config/webpack.dev.js" "--progress" "--profile"


/home/eryk/programowanie/web/ngx-modialog/node_modules/ts-node/src/index.ts:307
        throw new TSError(formatDiagnostics(diagnosticList, cwd, ts, lineOffset))
              ^
TSError: ⨯ Unable to compile TypeScript
Cannot find type definition file for 'source-map'. (2688)
    at getOutput (/home/eryk/programowanie/web/ngx-modialog/node_modules/ts-node/src/index.ts:307:15)
    at /home/eryk/programowanie/web/ngx-modialog/node_modules/ts-node/src/index.ts:336:16
    at Object.compile (/home/eryk/programowanie/web/ngx-modialog/node_modules/ts-node/src/index.ts:498:11)
    at Module.m._compile (/home/eryk/programowanie/web/ngx-modialog/node_modules/ts-node/src/index.ts:392:43)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/home/eryk/programowanie/web/ngx-modialog/node_modules/ts-node/src/index.ts:395:12)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/eryk/programowanie/web/ngx-modialog/config/webpack.common.js:32:14)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
  • What is the expected behavior?
    Should built production version.

  • What is the motivation / use case for changing the behavior?
    Building a production version with potential pull requests..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant