You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(stargate) monkeypoo@TubeToob crap-code % ./deploy --js
Now using node v14.21.2 (npm v6.14.17)
Notice: compiling javascript
>[email protected] build:browserify /Users/monkeypoo/doghouse/crap-code/jsx
> browserify -t [ babelify --presets [ @babel/preset-env @babel/preset-react ] ] moomoo.jsx > moomoo.js
Error: Parsing file /Users/monkeypoo/doghouse/crap-code/jsx/node_modules/react-native/index.js: 'import' and 'export' may appear only with 'sourceType: module' (14:0)
at Deps.parseDeps (/Users/monkeypoo/doghouse/crap-code/jsx/node_modules/module-deps/index.js:519:15)
at getDeps (/Users/monkeypoo/doghouse/crap-code/jsx/node_modules/module-deps/index.js:447:44)
at /Users/monkeypoo/doghouse/crap-code/jsx/node_modules/module-deps/index.js:430:38
at ConcatStream.<anonymous> (/Users/monkeypoo/doghouse/crap-code/jsx/node_modules/concat-stream/index.js:37:43)
at ConcatStream.emit (events.js:412:35)
at finishMaybe (/Users/monkeypoo/doghouse/crap-code/jsx/node_modules/readable-stream/lib/_stream_writable.js:630:14)
at endWritable (/Users/monkeypoo/doghouse/crap-code/jsx/node_modules/readable-stream/lib/_stream_writable.js:638:3)
at ConcatStream.Writable.end (/Users/monkeypoo/doghouse/crap-code/jsx/node_modules/readable-stream/lib/_stream_writable.js:594:41)
at DuplexWrapper.onend (/Users/monkeypoo/doghouse/crap-code/jsx/node_modules/readable-stream/lib/_stream_readable.js:577:10)
at Object.onceWrapper (events.js:519:28)
at DuplexWrapper.emit (events.js:412:35)
at endReadableNT (/Users/monkeypoo/doghouse/crap-code/jsx/node_modules/readable-stream/lib/_stream_readable.js:1010:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR![email protected] build:browserify: `browserify -t [ babelify --presets [ @babel/preset-env @babel/preset-react ] ] moomoo.jsx > moomoo.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:browserify script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/monkeypoo/.npm/_logs/2023-08-29T22_50_26_611Z-debug.log
(stargate) monkeypoo@TubeToob crap-code %
If I remove import { BottomSheet } from '@gorhom/bottom-sheet'; the browserify command succeeds. Otherwise, I get that error mentioned in the description.
The text was updated successfully, but these errors were encountered:
Description
React Native Version
0.72.4
Output of
npx react-native info
Steps to reproduce
Any trivial react JSX/file with the following
import
:The following dependencies:
Then, the following command to build the jsx into js:
browserify -t [ babelify --presets [ @babel/preset-env @babel/preset-react ] ] moomoo.jsx > moomoo.js
If I remove the
import { BottomSheet } from '@gorhom/bottom-sheet';
, the corresponding react/jsx page can compile.Snack, screenshot, or link to a repository
Snacking: https://snack.expo.dev/ubgMN6f1u
The following compiles the JSX to javascript:
browserify -t [ babelify --presets [ @babel/preset-env @babel/preset-react ] ] moomoo.jsx > moomoo.js
The following is a simple JSX react example:
This is the accompanying
index.html
that react builds off from:If I remove
import { BottomSheet } from '@gorhom/bottom-sheet';
thebrowserify
command succeeds. Otherwise, I get that error mentioned in the description.The text was updated successfully, but these errors were encountered: