Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to run my angular project But I am facing following error ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can’t import the named export ‘InjectionToken’ from non EcmaScript module in Angular. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
- How ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can't import the named export 'InjectionToken' from non EcmaScript module Error Occurs ?
- How To Solve ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can't import the named export 'InjectionToken' from non EcmaScript module Error ?
- Solution 1: Update ngx-window-token to latest version
- Solution 2
- Summary
How ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can’t import the named export ‘InjectionToken’ from non EcmaScript module Error Occurs ?
I am trying to run my angular project But I am facing following error.
ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can't import the named export 'InjectionToken' from non EcmaScript module
How To Solve ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can’t import the named export ‘InjectionToken’ from non EcmaScript module Error ?
- How To Solve ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can't import the named export 'InjectionToken' from non EcmaScript module Error ?
To Solve ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can't import the named export 'InjectionToken' from non EcmaScript module Error You Just need to update ngx-window-token to the latest version. Just add This line in your frontend/package.json: “ngx-window-token”: “^5.0.0” Now, Rebuild Your project and Your Error should be solved now.
- ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can't import the named export 'InjectionToken' from non EcmaScript module
To Solve ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can't import the named export 'InjectionToken' from non EcmaScript module Error You Just need to update ngx-window-token to the latest version. Just add This line in your frontend/package.json: “ngx-window-token”: “^5.0.0” Now, Rebuild Your project and Your Error should be solved now.
Solution 1: Update ngx-window-token to latest version
You Just need to update ngx-window-token to the latest version. Just add This line in your frontend/package.json.
"ngx-window-token": "^5.0.0"
Now, Rebuild Your project and Your Error should be solved now.
Solution 2
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read