Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Named export 'isReactNative' not found. #1344

Closed
wemeetagain opened this issue Aug 11, 2022 · 1 comment
Closed

SyntaxError: Named export 'isReactNative' not found. #1344

wemeetagain opened this issue Aug 11, 2022 · 1 comment
Labels
need/triage Needs initial labeling and prioritization

Comments

@wemeetagain
Copy link
Member

Using the latest nightly I get this error at runtime

file:///home/cayman/Code/lodestar/node_modules/libp2p/dist/src/config.js:10
import { isNode, isBrowser, isWebWorker, isElectronMain, isElectronRenderer, isReactNative } from 'wherearewe';
                                                                             ^^^^^^^^^^^^^
SyntaxError: Named export 'isReactNative' not found. The requested module 'wherearewe' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'wherearewe';
const { isNode, isBrowser, isWebWorker, isElectronMain, isElectronRenderer, isReactNative } = pkg;

    at ModuleJob._instantiate (node:internal/modules/esm/module_job:128:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:194:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
    at async file:///home/cayman/Code/lodestar/packages/cli/bin/lodestar.js:3:1
@wemeetagain wemeetagain added the need/triage Needs initial labeling and prioritization label Aug 11, 2022
@wemeetagain
Copy link
Member Author

This wherearewe dependency was added in #1296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants