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 module 'Core', 'Components', 'tag'.

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request/question

Current behavior

Unable to compile the code.

Expected behavior

Need to use of the module as in the examples.

Minimal reproduction of the problem with instructions (if applicable)

  1. Added the module and added “Basic example” code to test the module.
  2. While compiling the code the below issue is coming up. ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/dropdown/tag-input-dropdown.component.d.ts (3,26): Cannot find module ‘core’.

ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/dropdown/tag-input-dropdown.component.d.ts (4,35): Cannot find module ‘components’.

ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/tag/tag.component.d.ts (2,26): Cannot find module ‘core’.

ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/tag/tag.component.d.ts (3,27): Cannot find module ‘tag’.

ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/tag-input/tag-input.d.ts (8,44): Cannot find module ‘core’.

ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/tag-input/tag-input.d.ts (9,62): Cannot find module ‘components’. webpack: Failed to compile.

What is the motivation / use case for changing the behavior? (if applicable)

What do you use to build your app? (SystemJS, Webpack, angular-cli, etc.). Please specify the version

Webpack

Angular version:

@angular/core”: “^4.0.0”

ng2-tag-input version:

“ng2-tag-input”: “^1.3.1”

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 ]

All browsers.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
acuntexcommented, Jun 2, 2017

Already filed here: https://github.com/Gbuomprisco/ng2-tag-input/issues/419

At the moment you can just use 1.2.9. But only without AoT 😦

0reactions
Gbuompriscocommented, Jun 5, 2017

Hi all, this should have been fixed by @eyalhakim. I would have loved to keep the named paths intact, but apparently the CLI won’t work with them just yet. Please reopen this ticket if you still have issues.😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode cannot find module '@angular/core' or any other ...
The reason is that visual code IDE is unable to resolve the base url so is unable to resolve path to imported components...
Read more >
Got "Cannot find module" after added tag to angular ...
Click IIS Express to run it from VS2017 and got "Cannot find module" error. It works if use the following in "counter.component.ts" (comment ......
Read more >
Error "Cannot find module 'react' or its corresponding type ...
Hi @johnjohn-0472,. According to my research and testing, please try to set moduleResolution to node in your tsconfig.json file. ... If the error ......
Read more >
angular-tag-cloud-module - npm
Start using angular-tag-cloud-module in your project by running `npm i ... import { Component } from '@angular/core'; import { CloudData, ...
Read more >
Feature modules - Angular
Feature modules are NgModules for the purpose of organizing code. For the final sample application with a feature module that this page describes,...
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