question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TS2440: Import declaration conflicts with local declaration of 'PluginConfig'.

See original GitHub issue

Hi Sir!

Bug report I am getting following below error :

ERROR in [at-loader] ./node_modules/protractor/built/index.d.ts:5:10 TS2440: Import declaration conflicts with local declaration of ‘PluginConfig’.   ERROR in [at-loader] ./node_modules/protractor/built/index.d.ts:5:24 TS2440: Import declaration conflicts with local declaration of ‘ProtractorPlugin’.

  • Node Version: 10.5.0
  • Protractor Version: ~5.1.2
  • Angular Version: ^4.2.4
  • Browser(s): any
  • Operating System and Version Windows 10
  • Your protractor configuration file

const { SpecReporter } = require(‘jasmine-spec-reporter’);

exports.config = { allScriptsTimeout: 11000, specs: [ ‘./e2e/**/*.e2e-spec.ts’ ], capabilities: { ‘browserName’: ‘chrome’ }, directConnect: true, baseUrl: ‘http://localhost:4200/’, framework: ‘jasmine’, jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, print: function() {} }, onPrepare() { require(‘ts-node’).register({ project: ‘e2e/tsconfig.e2e.json’ }); jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); } };

  • Steps to reproduce the bug - npm run build fail

Feature Request Please help me to resolve

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:15
  • Comments:27 (1 by maintainers)

github_iconTop GitHub Comments

26reactions
SACHINBNcommented, Nov 7, 2019

Today I have downgraded the typescript version from 3.7.x to 3.6.x.,It is working fine . Thank you mattcasey

22reactions
JonWallstencommented, Dec 23, 2019

May not be the best solution for everyone, but you should be able to fix this by adding the following in tsconfig.json:

"skipLibCheck": true
Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - TS2440: Import declaration conflicts with local ...
In my case, the issue was due to a wrong import in a component. I wrongly wrote this import { EventEmitter } from...
Read more >
Import declaration conflicts with local declaration of ...
ts:5:24 - error TS2440: Import declaration conflicts with local declaration of 'ProtractorPlugin'. Azure DevOpsAzure DevOps. SK.
Read more >
angular/protractor - Gitter
... error TS2440: Import declaration conflicts with local declaration of 'ProtractorPlugin'. 5 import { PluginConfig, ProtractorPlugin } from '.
Read more >
Error Ts2440 (Ts) Import Declaration Conflicts With Local ...
Error Ts2440 (Ts) Import Declaration Conflicts With Local Declaration Of 'Pluginconfig'. TS for the New Programmer TypeScript for JS Programmers TS for ...
Read more >
error coming in index.d.ts - C# Corner
Import declaration conflicts with local declaration of 'PluginConfig '. Import declaration conflicts with local declaration of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found