Giter Club home page Giter Club logo

Comments (15)

PhilippKrone avatar PhilippKrone commented on July 20, 2024 5

Hi,

you can fix it by changing the following in dist/index.js:

from:

var _Dimensions = require('Dimensions');

var _Dimensions2 = _interopRequireDefault(_Dimensions);

var _Dimensions$get = _Dimensions2['default'].get('window');

to

var React = require('react-native');
var {
  Dimensions
} = React;
var {width, height} = Dimensions.get('window');

Regards
Philipp

from react-native-swiper.

helveticafire avatar helveticafire commented on July 20, 2024

Upvote! πŸ‘

Sent from my iPhone

On Jul 29, 2015, at 21:58, Philipp Krone [email protected] wrote:

Hello,

I get the following warning in the packager:

Unable to resolve module Dimensions from .... dist.js
Any idea how to fix that? Everything is working correctly, just the message in the packager.

Regards

β€”
Reply to this email directly or view it on GitHub.

from react-native-swiper.

cgarvis avatar cgarvis commented on July 20, 2024

πŸ‘

from react-native-swiper.

alejomendoza avatar alejomendoza commented on July 20, 2024

I still get this error with the current version, is someone updating the npm for this module?

alejomendoza@90a6dbe

from react-native-swiper.

aksonov avatar aksonov commented on July 20, 2024

@leecade I'm getting this error as well...

from react-native-swiper.

hufeng avatar hufeng commented on July 20, 2024

@leecade I'm getting this error as well

from react-native-swiper.

lighthx avatar lighthx commented on July 20, 2024

I'm getting this error as well

from react-native-swiper.

ghamaide avatar ghamaide commented on July 20, 2024

Same, getting this error in .../dist/index.js

from react-native-swiper.

viktors avatar viktors commented on July 20, 2024

I'm experiencing the same issue. The full message is:

Unable to resolve module Dimensions from /Users/user/MyApp/node_modules/react-native-swiper/dist/index.js: Invalid directory /Users/node_modules/Dimensions

As far as I can tell the issue is that it's looking in wrong directory for Dimensions module (two levels above what it should be).

from react-native-swiper.

antionio avatar antionio commented on July 20, 2024

I'm getting this error too, similar to what @viktors described. Xcode can't build after adding this library and example code.

from react-native-swiper.

hmm29 avatar hmm29 commented on July 20, 2024

same error,
this needs to get fixed asap

from react-native-swiper.

hmm29 avatar hmm29 commented on July 20, 2024

Thanks so much @PhilippKrone !

from react-native-swiper.

andresn avatar andresn commented on July 20, 2024

Waiting on this PR #64

from react-native-swiper.

leecade avatar leecade commented on July 20, 2024

fixed

from react-native-swiper.

hikmetsk avatar hikmetsk commented on July 20, 2024

Do what @PhilippKrone said after restart packager. ;)

from react-native-swiper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.