Project created in windows does not work in ubuntu (linux) - Duplicate identifier 'Promise'

Hello guys,
I have a project developed on windows and the same is already in production. But now, I need to run the same project on ubuntu 16.04 and it has the following problem:

Captura de tela de 2017-11-21 08-01-12

If I run the same project on windows the same works!

Ubuntu version:
Your system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.4.2
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.11.2
Xcode version: Not installed
npm: 3.10

Version in windows 10:
Ionic CLI Version: 3.5
ios-deploy version: Not installed
ios-sim version: Not installed
Node Version: v8.2
npm: 5.3
Xcode version: Not installed
Thanks!

Did you copy over the whole project?
If so, delete node_modules and run npm install.

Yes, I copied the entire project!
I did the procedure you ordered, delete the directory node_modules and run

npm install

But the problem continues :disappointed_relieved:

The problem was my devDependencies, which had an extra package "@types/es6-promise": "0.0.32"

“devDependencies”: {
“@ionic/app-scripts”: “1.3.7”,
“@ionic/cli-plugin-cordova”: “1.4.1”,
“@ionic/cli-plugin-ionic-angular”: “1.3.2”,
“@types/core-js”: “^0.9.42”,
“@types/es6-promise”: “0.0.32”,
“typescript”: “2.3.3”,
“typings”: “^2.1.1”
},

to

“devDependencies”: {
“@ionic/app-scripts”: “1.3.7”,
“@ionic/cli-plugin-cordova”: “1.4.1”,
“@ionic/cli-plugin-ionic-angular”: “1.3.2”,
“@types/core-js”: “^0.9.42”,
“typescript”: “2.3.3”,
“typings”: “^2.1.1”
},

1 Like