Posts

Showing posts from December, 2021

Fatal err or C1060: compiler is out of heap space

Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\array(460,1): fatal err or C1060: compiler is out of heap space Open xxx.vcxproj,search "Globals" to find x64

Error: error:0308010C:digital envelope routines::unsupported when npm start

Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) ... opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' export NODE_OPTIONS=--openssl-legacy-provider

npm ERR! ERESOLVE unable to resolve dependency tree

try: npm install --legacy-peer-deps

Unknown type name 'RCTMmoduleData'; did you mean 'RCTModuleData'?

This compile error is happaned in XCode 13.2.1: RCTCxxBridge.mm:644:12: error: unknown type name 'RCTMmoduleData'; did you mean 'RCTModuleData'? just use autofix in XCode, and recompile again.

Wired Blank List after Use Taro.navigateTo

Image
When I use Taro.navigateTo to change to a page with the virtuallist, most of time you should see a blank list. But the interested part is I can check the html source, found the everything is there, just can't see in the page. This is the most wired problem when I use Taro3. The current version is v3.3.15, H5(HTML) mode. The temperarily solution to dont use navigateTo but reLaunch.

TS2307: Cannot find module 'react-native' or its corresponding type declarations

yarn add -D @types/react-native // don't need react-native itself

We no longer support global installation of Create React App

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0). We no longer support global installation of Create React App. Please remove any global installs with one of the following commands: - npm uninstall -g create-react-app - yarn global remove create-react-app The latest instructions for creating a new app can be found here: https://create-react-app.dev/docs/getting-started/ This worked for me: npx create-react-app@latest project-name

Error: error:0308010C:digital envelope routines::unsupported

Error: error:0308010C:digital envelope routines::unsupported on node 17.2.0. workaround: export NODE_OPTIONS=--openssl-legacy-provider

npx react-native init "unexpected token =" error on windows

npx: installed 635 in 318.049s Unexpected token = run `npm audit fix` to fix them, or `npm audit` for details You are currently running Node v10.17.0 but React Native requires >=12. Please use a supported version of Node. See https://facebook.github.io/react-native/docs/getting-started.html C:\adam\windemo\node_modules\metro\src\Server.js:350 processRequest = (req, res, next) => { ^ SyntaxError: Unexpected token = at Module._compile (internal/modules/cjs/loader.js:723:23) 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 Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (C:\adam\windemo\node_modules\metro\src\shared\output\bundle.js:12:16) at Module._compi...

The Famous Billion Dollar Mistake in Go

C:\adam>nvm install 15.8.0 Downloading node.js version 15.8.0 (64-bit)... Complete Creating C:\Users\Administrator\AppData\Roaming\nvm\temp Downloading npm version 7.5.1... Error while downloading https://github.com/npm/cli/archive/v7.5.1.zip - Get "https://github.com/npm/cli/archive/v7.5.1.zip": read tcp 172.31.0.229:59180->20.205.243.166:443: wsarecv: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x20 pc=0x106a5a7] goroutine 1 [running]: nvm/web.Download(0x11c0e270, 0x2d, 0x11fe2100, 0x3e, 0x11fab3e0, 0x5, 0x0) C:/Users/corey/OneDrive/Documents/workspace/oss/coreybutler/nvm-windows/src/web/web.go:81 +0x1c7 nvm/web.GetNpm(0x11c0e3f1, 0x2a, 0x11fab3e0, 0x5, 0x11e8087c) C:/Users/corey/OneDrive/Documents/workspace/...