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.

Cannot find name 'object'. webpack: Failed to compile.

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
rcadhikaricommented, Aug 1, 2017

Modifying the "typescript": "~2.4.2" to "typescript": "^2.4.2" resolved the issue.

Then ran the following:

rm -rf node_modules
npm cache clean --force
npm install
ng serve

Thank you @Gbuomprisco for help!!!

0reactions
Gbuompriscocommented, Aug 1, 2017

Update typescript (there is a tilde in the package json) so your version is fixed to 1.1

Read more comments on GitHub >

github_iconTop 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 >

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