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.

I’am using webpack and I got this error

ERROR in ../~/angular-spinner/angular-spinner.js Module not found: Error: Cannot resolve module 'spin' in /home/gabriel/Development/garavano/node_modules/angular-spinner @ ../~/angular-spinner/angular-spinner.js 132:2-38

I solved it by changing ‘spin’ to ‘spin.js’ in line 132

define(['angular', 'spin.js'], factory);

Is this an issue for anyone else?

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
mischklcommented, Mar 24, 2016

Here’s a solution for webpack that doesn’t require modifying the package:

npm install --save-dev imports-loader

then in webpack.config.js:

    module: {
        loaders: [
            {
                test: require.resolve('angular-spinner'),
                loader: 'imports?define=>false' // disable AMD for this package
            }
        ]
    }
1reaction
Attrash-Islamcommented, Jan 15, 2017

Hi community folks,

We’ve decided to refactor the whole base code because of the many requests of webpack and amd compatibility issues, and we’re using already webpack in master branch (+TypeScript).

You don’t have those dependency issues anymore (once we publish new release)

Read more comments on GitHub >

github_iconTop Results From Across the Web

module-not-found - Next.js
The module you're trying to import is not installed in your dependencies · The module you're trying to import is in a different...
Read more >
ModuleNotFoundError: no module named Python Error [Fixed]
How to fix the ModuleNotFoundError in Python · 1. Make sure imported modules are installed · 2. Make sure modules are spelled correctly...
Read more >
javascript - Module not found can't resolve - Stack Overflow
app/index.js Module not found: Error: Can't resolve './app/test.js'. I've tried changing the file path to a relative one with no luck and ...
Read more >
Have a JavaScript Module Not Found Error ... - Airbrake Blog
Most likely, the reason you're seeing a “module not found” error message within your JavaScript code will be something simple, like putting an ......
Read more >
How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Basically, just change 'react-scripts' to 4.0.2 in your package.json and run `npm install` again :D Follow me on Twitter: ...
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