Skip to content

Importing module causes error: Failed to execute importScripts #4

@mcintosh101

Description

@mcintosh101

Hi,

I am trying to import this module into my project but the moment I add this line:

import { LANScan } from 'react-native-lanscan';

I get an error which says:

"Unable to resolve module events from /Users/amci/Sites/verv/ConnectorApp/node_modules/react-native-lanscan/main-tf.js: Module does not exist in the module map or in these directories:
/Users/amci/Sites/verv/ConnectorApp/node_modules,
/Users/amci/node_modules

This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
 1. Clear watchman watches: `watchman watch-del-all`.
 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
 3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`."

I've tried everything that says, cleared all cache, removed the node_modules and re-installed them.

Do you know what is happening? I've attached a screen shot from the emulator.

screen shot 2017-01-10 at 09 43 22

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