Cannot find name 'object'. webpack: Failed to compile.
See original GitHub issueI’m submitting a … (check one with “x”)
[x] bug report => search github for a similar issue or PR before submitting
~~[ ] feature request~~ [new feature requests are not considered at this time]
[ ] support request/question
Current behavior
ERROR in /Users/ram.adhikari/apps/expert-rates/frontend/node_modules/ngx-chips/dist/modules/components/tag-input/tag-input.d.ts (72,17): Cannot find name 'object'.
webpack: Failed to compile.
Expected behavior
Minimal reproduction of the problem with instructions (if applicable)
What is the motivation / use case for changing the behavior? (if applicable)
What do you use to build your app?. Please specify the version
Webpack v2.7.0, angular-cli v1.26,
Angular version:
v4.3.2
ngx-chips version:
^1.4.6
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Chrome XX(latest), Firefox XX (latest)
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Webpack suddenly fails to compile due to "Module not found ...
It's an issue with the Webpack or Jest configuration. ... With an absolute path, it will only search in the given directory. webpack.config....
Read more >TypeScript error TS2304 cannot find name require - Edureka
The error that I'm getting is the "TS2304: Cannot find name 'require' " when I attempt to transpile a simple TypeScript Node.js page....
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
To fix the error, you need to install the package that is absent in your project directory – npm install package-name or yarn...
Read more >TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
Read more >ts-loader - npm
The build should fail on TypeScript compilation errors as of webpack 2. If for some reason it does not, you can use the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Modifying the
"typescript": "~2.4.2"
to"typescript": "^2.4.2"
resolved the issue.Then ran the following:
Thank you @Gbuomprisco for help!!!
Update typescript (there is a tilde in the package json) so your version is fixed to 1.1