Error: Cannot find module 'string-mask'
See original GitHub issueAfter 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:
- Created 8 years ago
- Comments:12 (7 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
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
Does
string-mask
not export correctly?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.