Build fails due to errors in node_modules/@types/lodash/index.d.ts #700
Comments
I had the same issue and solved it by installing typescript 2.0 compatible types. The latest lodash uses typescript 2.1 which is not compatible with ionic right now which uses ts 2.0 still. |
You could also just not use types for now. Either way works. I'm going to close this issue as there's no action to take here from Ionic. We can't use TS 2.1 yet because Angular AoT doesn't support it yet. Thanks, |
@arendjantetteroo thanks you very much, your suggestion seems to be working fine @danbucholtz the problem is that it gets added as a dependency as soon as I try to add smth.. so i have to constantly remove it. |
@arendjantetteroo Thanks, work fine with the nativescript update too! |
arendjantetteroo: Thanks for the suggestion and details. Its worked for me. Use this in your package.json: |
Accorging to this issue ionic-team/ionic-app-scripts#700 (comment)
This is what worked for me npm install @types/lodash@ts2.0 --save-dev --save-exact |
@arendjantetteroo - thanks a lot! That fixed my problem, too! |
Apparently the package npm install @types/lodash@4.14.50 --save |
@arendjantetteroo Thanks man! Its worked |
@xindexer thanks!! worked for me |
Thanks @arendjantetteroo, it worked like a charm!! |
Short description of the problem:
build fails due to errors in node_modules/@types/lodash/index.d.ts
What behavior are you expecting?
successful build
Steps to reproduce:
For example,
Alexs-MacBook-Pro:boss811.mobile alexryltsov$ npm install moment-timezone --save
boss811.mobile@ /Users/alexryltsov/Git/boss811.mobile
├── moment-timezone@0.5.11
└─┬ typedoc@0.5.5
└── @types/lodash@4.14.52
After the last steps there are numerous errors displayed complaining about @types/lodash - see below
Which @ionic/app-scripts version are you using?
Alexs-MacBook-Pro:boss811.mobile alexryltsov$ ionic info
Your system information:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.6
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.9.2
Xcode version: Xcode 8.2.1 Build version 8C1002
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
The current workaround for me is to run npm uninstall @types/lodash --save-dev
The text was updated successfully, but these errors were encountered: