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.

Using with webpack (AMD)

See original GitHub issue

I can’t get jquery.inputmask to work with webpack through bower (tell webpack to look into bower folder and use bower.json to find the main file, nothing fancy).

The problem is :

ERROR in ./resources/assets/vendor/jquery.inputmask/dist/inputmask/inputmask.js
Module not found: Error: Cannot resolve module 'inputmask.dependencyLib' in /workspace/resources/assets/vendor/jquery.inputmask/dist/inputmask
 @ ./resources/assets/vendor/jquery.inputmask/dist/inputmask/inputmask.js 9:48-94

If I look at line 9 of inputmask.js, the code try to use inputmask.dependencyLib as a dependency : define([ "inputmask.dependencyLib" ], factory) but there is no inputmask.dependencyLib in the jquery.inputmask package ?

Can you help me ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
ksrbcommented, Jun 28, 2016

@osaris check out this gist and see if it works for you.

0reactions
RobinHerbotscommented, Apr 13, 2017

@osaris ,

Do you still have problems? Otherwise update to version 3.3.5. I also updated the readme

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module Methods - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >
Is there a way to load AMD modules from ... - Stack Overflow
I'm using it to pack my module/plugin to be load in a framework and the modules uses some modules from the target framework,...
Read more >
amd-webpack-plugin - npm
Start using amd-webpack-plugin in your project by running `npm i ... There is 1 other project in the npm registry using amd-webpack-plugin.
Read more >
Webpack for AMD projects - gists · GitHub
Use webpack -dev-middleware if you want to plug it into your app and have it serve built files as part of your dev...
Read more >
A Better Process to Move Embedded AMD modules from the ...
The legacy code may contain AMD modules in HTML/cshtml files. The require function can't be found when using Webpack instead of Require.js.
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