-
-
Notifications
You must be signed in to change notification settings - Fork 26
Failed to install #16
Comments
Apparently i did have a problem with mathjax-full , i've tried to add it but still same error
|
@ShaMan123 kindly advice, I really need this, rather than using webview. |
@ShaMan123 i've tried Math example from the repo but still same errors, @nolife08021 have you tried the mathExample, may be im missing something out... |
@joaortizro I tried just now and this error comes out. error: bundling failed: Error: Unable to resolve module |
@joaortizro I able to run the mathExample now after install mathjax-full and transformation-matrix in react-native-math-view as error log mention. But I still wondering how to install it in my apps. |
Will look into it. |
I tried to reproduce the issue. It is something I ran into before but couldn't reproduce anymore. |
@nolife08021 @joaortizro I've added additional info in the ReadME. Suggest you guys give it a look |
@nolife08021 after installing if the bug persists try running: cd node_modules/react-native-math-view && npm run postinstall
and report back. |
Might have found the problem. bumped -> 3.4.1 |
@nolife08021 @ShaMan123 , i've managed to at least run the mathExample but now it seems there are some errors with the hooks
|
@ShaMan123 I'm facing this error after I removed all node_modules + lockfile and download it again.
"react-native": "0.59.5" |
@nolife08021 @ShaMan123 , i've managed to at least run the mathExample but now it seems there are some errors with the hooks Originally posted by @joaortizro in #16 (comment) Make sure it's not a problem with your environment, see this. |
I think that downgrading is not a good idea. This error is not vital and can be disregarded
I've edited the installation guide, make sure to follow the new instructions. |
and perhaps try the following:
|
@ShaMan123 i did follow your new instructions with yarn On step 5 i did i will try option 3 asap , since i've other project on it and a bit scared to mess things up Edit: |
Try it on a new project
בתאריך יום ה׳, 21 בנוב׳ 2019, 01:03, מאת joaortizro <
[email protected]>:
… i tried 1,2,4, and 5 by running ./gradlew clean inside the android
folder, i dont know if this is what you mean by *clean and rebuild native
code* to be honest, and still got the error without the compiled mathjax
successfully
i will try option 3 asap , since i've other project on it and kinda scared
to mess things up
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AIGAW4LA6SB6IVFHBON3BCTQUW63FA5CNFSM4JNEUYH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEV5W7I#issuecomment-556522365>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGAW4OTIYTLINLFKOAH3KLQUW63FANCNFSM4JNEUYHQ>
.
|
@ShaMan123 it was a completely new project May i ask your react, react-native, react-dom version? |
i've upgraded to react 16.9.0 and native to 0.61.4 but i will add the full log generated by npm |
Do you have |
ok, so with yarn it does put the folder inside Error: Unable to resolve module @ShaMan123 yes i have just to be clear, i ran
|
update typescript version |
I just managed to debug on ios and found the problem for the duplicate hook call. |
Please have you been able to resolved this |
This worked for me. Thank you. |
Failed to install with "npm install --save react-native-math-view"
npx: installed 1 in 2.895s
error TS5023: Unknown compiler option 'downlevelIteration'.
error TS5023: Unknown compiler option 'lib'.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] compile:
npx tsc
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/admin/.npm/_logs/2019-11-18T02_56_23_447Z-debug.log
fs.js:114
throw err;
^
Error: ENOENT: no such file or directory, copyfile '/Users/admin/myMathProject/node_modules/mathjax-full/ts/input/tex/mhchem/mhchem_parser.js' -> '/Users/admin/myMathProject/node_modules/mathjax-full/js/input/tex/mhchem/mhchem_parser.js'
at Object.copyFileSync (fs.js:1728:3)
at Object. (/Users/admin/myMathProject/node_modules/react-native-math-view/scripts/compileMathjax.js:22:4)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Error: [email protected] postinstall:
node ./scripts/compileMathjax && tsc
Exit status 1
at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-
lifecycle/index.js:301:16)
at EventEmitter.emit (events.js:198:13)
at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-
lifecycle/lib/spawn.js:55:14)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
pkgid [email protected]
The text was updated successfully, but these errors were encountered: