-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Description
I'm trying to get this running on react native web.
Uncaught TypeError: (0 , _reactNavigation.StackNavigator) is not a function
at Object.defineProperty.value (bundle.js:78675)
at __webpack_require__ (bundle.js:660)
at fn (bundle.js:84)
at Object.defineProperty.value (bundle.js:78642)
at __webpack_require__ (bundle.js:660)
at fn (bundle.js:84)
at Object.defineProperty.value (bundle.js:78489)
at __webpack_require__ (bundle.js:660)
at fn (bundle.js:84)
at Object.defineProperty.value (bundle.js:78556)
at __webpack_require__ (bundle.js:660)
at fn (bundle.js:84)
at Object.<anonymous> (bundle.js:36601)
at __webpack_require__ (bundle.js:660)
at fn (bundle.js:84)
at Object.<anonymous> (bundle.js:79861)
at __webpack_require__ (bundle.js:660)
at bundle.js:709
at bundle.js:712
Also what's weird, when I just run the following with babel-node
import RN from 'react-navigation'
console.log(RN.StackNavigator)
I get this error:
/Users/thomasreggi/Desktop/web/ap/node_modules/react-navigation/src/navigators/StackNavigator.js:3
import React from 'react';
^^^^^^
SyntaxError: Unexpected token import
When I check package.json main
it uses the src
and not the lib
version, why is this?
https://github.com/react-community/react-navigation/blob/master/package.json#L5
Metadata
Metadata
Assignees
Labels
No labels