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.

Error: Cannot find module 'string-mask'

See original GitHub issue

After install, I see the following error:

Uncaught Error: Cannot find module 'string-mask' Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to: Error: [$injector:modulerr] Failed to instantiate module ui.utils.masks due to: Error: [$injector:nomod] Module 'ui.utils.masks' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

bower.json

{
  "dependencies": {
    "angular": "~1.4.1",
    "angular-ui-router": "~0.2.15",
    "bootstrap": "~3.3.5",
    "angular-bootstrap": "~0.13.0",
    "font-awesome": "~4.3.0",
    "bootstrap-tagsinput": "~0.5.0",
    "bootstrap-treeview": "~1.2.0",
    "jquery-loader": "*",
    "angular-breadcrumb": "~0.4.0",
    "angular-resource": "~1.4.1",
    "angular-local-storage": "~0.2.2",
    "angular-input-masks": "~1.5.1",
    "angular-br-filters": "~0.4.0"
  },
  "resolutions": {
    "angular": "~1.4.1",
    "string-mask": "^0.2.1"
  }
}

Is it an error with dependencies resolution ?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tiagoemerickcommented, Dec 7, 2017

My case resolved when i put an order to export the scripts that was:

angular-input-masks-standalone.min.js, angular-input-masks-dependencies.min.js, angular-input-masks.min.js, angular-input-masks.br.min.js

1reaction
pedercommented, Feb 10, 2017

Does string-mask not export correctly?

image

I don’t want to include an enormous file in my project that also references moment.js, since my project already pulls in moment.js. I’m curious if anyone else has come across this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

string-mask - npm
A string formatter and validator based on masks. Latest version: 0.3.0, last published: 7 years ago. Start using string-mask in your project ...
Read more >
Cannot find module 'react' or its corresponding type ...
The editor throws errors while importing every installed library like this: Cannot find module 'react' or its corresponding type declarations. The project ...
Read more >
Node.js v19.3.0 Documentation
Indicates the failure of an assertion. All errors thrown by the node:assert module will be instances of the AssertionError class. new assert.AssertionError( ...
Read more >
Could not find declaration file for module 'X' Error | bobbyhadz
If the error persists, the third-party module you are importing might not provide typings, which means that you need to declare the module...
Read more >
cannot find module 'rxjs/from' or its corresponding type ...
If you upgrade your Typescript version something greater than 4.2.x , you shouldn't face the issue in a real life project. However, 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