Skip to content

Dependencies not found #2

Open
Open

Description

@mantovanig

I install the module with: npm install --save react-image-compare

When i import the module like example in docs i get this errors:

Module not found: Error: Can't resolve 'functional-easing'
Module not found: Error: Can't resolve 'react-imation'
Module not found: Error: Can't resolve 'react-imation/tween-value-factories'
...

I saw that they are all devDependencies, it's right?

Thanks

Activity

  1. hew commented on Oct 19, 2017

    @hew
    Owner

    That's my bad. They're totally dependencies. Just published a new version. Give it a shot. Should fix things.

    https://github.com/hew/react-image-compare/releases/tag/v0.0.4

  2. mantovanig commented on Oct 19, 2017

    @mantovanig
    Author

    Ok, dependencies are fixed!
    But now there another error with css:

    ERROR in ./node_modules/react-image-compare/css/style.css
    Module parse failed: /Users/mantovanig/Documents/Repos/BackstopJS/node_modules/react-image-compare/css/style.css Unexpected token (1:0)
    You may need an appropriate loader to handle this file type.
    | .comparison {
    |   width: 100%;
    |   height: 100%;
     @ ./node_modules/react-image-compare/dist/react-image-compare-manual.js 15:0-27
     @ ./node_modules/react-image-compare/dist/index.js
    

    Babel fails to compile css.
    Thanks

  3. hew commented on Oct 19, 2017

    @hew
    Owner

    Hmm. I haven't looked at this repo in a bit. I'll have to properly test it later on today. I'll try to push an other update tonight.

  4. hew commented on Nov 10, 2017

    @hew
    Owner

    @mantovanig That error above looks like a webpack error, not a babel one. As this library does import some CSS files, you'll want to handle them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions