sri
sri copied to clipboard
Cannot start the basic example (Invalid regular expression)
After following the steps shown in the docs here: https://github.com/scalajs-react-interface/sri/blob/master/docs/GettingStarted.md#native-mobile-app
It ends with this error:
$ yarn start
yarn run v1.21.1
$ react-native start server --transformer scalajsTransformer.js
Looks like you installed react-native globally, maybe you meant react-native-cli
?
To fix the issue, run:
npm uninstall -g react-native
npm install -g react-native-cli
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.
(And yes, I've tried the uninstall/install step of the react-native-cli plugin)
Running without yarn, yields:
$ react-native start server --transformer scalajsTransformer.js
Scanning 495 folders for symlinks in F:\projects\home\cochesjs\node_modules (22m
s)
(node:15648) Warning: Accessing non-existent property 'padLevels' of module expo
rts inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
Invalid regular expression: /(node_modules[\\\]react[\\\]dist[\\\].*|website\\no
de_modules\\.*|heapCapture\\bundle\.js)$/: Unterminated character class
Maybe I'm missing something of the environment or so, but the page link https://reactnative.dev/docs/getting-started.html is broken.