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

Conflict with rendere 3 in node_modules #31

Open
lakinduakash opened this issue Oct 24, 2018 · 3 comments
Open

Conflict with rendere 3 in node_modules #31

lakinduakash opened this issue Oct 24, 2018 · 3 comments

Comments

@lakinduakash
Copy link

I'm getting error when I run my project. Currently my angular version is 7.

ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
n
ode_modules/angular4-material-table/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

However after I deleting node_modules folder inside angular4-material-table folder which is in project's node_module, I could run without problem.

@irossimoline
Copy link
Owner

Hi @lakinduakash , I think it's a library dependency issue, so no extra action required but to reinstall it.

If you have an additional comment about this, please feel free to ping me.

@nolafs
Copy link

nolafs commented Jan 15, 2019

I am having the same issue when compiling the project.

ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
node_modules/angular4-material-table/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

Any ideas.

Cheers
Olaf

@nolafs
Copy link

nolafs commented Jan 15, 2019

When deleting the node_module inside angular4-material-table package, it compiles fine. The conflict occurs with my version of angular ahead. It tried fixing it by setting the resolution but not much luck with that. Also adding the path to the tsconfig fails to work.

Perhaps if you add the following line to the package.json will fix it:
"peerDependencies": { "@angular/core": ">=6.0.0 <8.0.0" },

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

3 participants