GithubHelp home page GithubHelp logo

epicweb-dev / react-hooks Goto Github PK

View Code? Open in Web Editor NEW
2.8K 37.0 1.9K 6.84 MB

Learn React Hooks! 🎣 ⚛

Home Page: https://react-hooks.epicweb.dev

License: Other

JavaScript 5.42% CSS 24.82% Dockerfile 0.35% TypeScript 68.28% MDX 0.88% Shell 0.24%
kcd-edu react epicweb-dev workshop

react-hooks's People

Contributors

allcontributors[bot] avatar aprillion avatar chantastic avatar charliestras avatar daleseo avatar heypano avatar jacobparis avatar kentcdodds avatar leggsimon avatar mansn avatar marcosvega91 avatar marioleed avatar mbehtemam avatar michaeldeboey avatar mokajima avatar mplis avatar nativedone avatar omarhoumz avatar pnadalini avatar prasanthlouis avatar pritamsangani avatar pvinis avatar pvujic avatar rafaeldavish avatar romach avatar roni-castro avatar sherylhohman avatar shivaprabhu avatar snaptags avatar tyler-dot-earth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-hooks's Issues

React imports could be shorten

This is just a suggestion in almost any exercise file. Instead of write the import like this:

import * as React from 'react';

it could be done like this, without the *:

import React from 'react';

or even import hooks separately, like:

import { useState, useEffect } from 'react';

I don't know if this feedback is helpful or not. I mean it is just a subtle difference (and maybe just personal preference as well) I just find it more common in other React projects like this.

Hope this was helpful. :)

workshop-setup: command not found

After run node setup,
I am getting this error;

▶️  Starting workshop setup...
      Running the following command: npx "https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733" -q
/var/folders/sv/nkx8d8tx3fq1dl6dhk4k_lp80000gp/T/npx-1657443962906.sh: line 2: workshop-setup: command not found

Screenshot 2022-07-10 at 13 07 03
Screenshot 2022-07-10 at 13 08 09

Changelog

Here's what's going to be different in the next version of the react-hooks workshop (you can find all these changes in the next branch until the videos are re-recorded):

  • Everything is TypeScript. There's a new script you can run to remove the TypeScript automatically if you want: ./scripts/remove-ts.
  • General improvements to the workshop content based on feedback from learners
  • Exercise 1 has been changed to be more of a natural evolution of an exercise of workshop 1. We build upon that and expand it further with an eye on improved user experience and accessibility.
  • Exercise 2 has been updated similar to exercise 1 so there's more continuity, but the primary activities/learning outcomes are unchanged.
  • Exercise 3 has a new extra credit to remove unnecessary controlled state for an input that doesn't need it.
  • Exercise 4 no longer has the "classes" version. If people really need to learn about classes they can find that from other resources. EpicReact teaches you modern React.
  • Added an example for the function form of state updates because that's the way exercise 4 should have state updates work.
  • Improved exercise 4 tests so they don't rely on localStorage specifically so you can use whatever key you want now.
  • Exercise 5 no longer has the "classes" version. Same reason as exercise 4. Exercise 5 also moved the Vanilla Tilt example to an extra credit (specifically about the importance of cleanup) and instead builds on top of the Username form to use refs to auto-focus on the input when there's an error. More real-world and practical. And it's always nice to build on top of a single example.

Unexpected end of JSON input while parsing near '...peerDependencies":{"@'

I am getting error when installing dependencies. Here is the details.

npm WARN deprecated [email protected]: This loader has been deprecated. Please use eslint-webpack-plugin
npm WARN deprecated [email protected]: no longer actively maintained
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated @hapi/[email protected]: joi is leaving the @Hapi organization and moving back to 'joi' (hapijs/joi#2411)
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due
to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! Unexpected end of JSON input while parsing near '...peerDependencies":{"@'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\egil_\AppData\Roaming\npm-cache_logs\2020-10-03T21_47_00_491Z-debug.log

image

Links broken on workshops page React Hooks Welcome

Not a blocker nor big issue but thought you might want to know. I'm assuming this is not coming from this repo, but though it might be the right place to report it.

On the workshops page, under the video, the links seem to be broken.

Screenshot 2020-10-04 at 10 54 04

npm ERR! code ELIFECYCLE

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test: react-scripts test "--watchAll=false"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test 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! C:\Users\Admin\AppData\Roaming\npm-cache_logs\2021-08-26T16_21_17_332Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test:coverage: npm run test -- --watchAll=false
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test:coverage 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! C:\Users\Admin\AppData\Roaming\npm-cache_logs\2021-08-26T16_21_18_897Z-debug.log
ERROR: "test:coverage" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] validate: npm-run-all --parallel build test:coverage lint
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] validate 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! C:\Users\Admin\AppData\Roaming\npm-cache_logs\2021-08-26T16_21_27_544Z-debug.log

local-state-key-change example has a syntax error if there's a name in local storage already

If I open http://localhost:3000/isolated/examples/local-state-key-change.js with a name already stored in local storage state from testing exercise 2, the page will not load and gives a few error messages.

Uncaught SyntaxError: Unexpected token 'e', "test" is not valid JSON
    at parse (<anonymous>)
    at utils.js:18:1
    at mountState (react-dom.development.js:16986:1)
    at Object.useState (react-dom.development.js:17699:1)
    at Object.useState (react.development.js:1622:1)
    at useLocalStorageState (utils.js:15:1)
    at Greeting (local-state-key-change.js:10:1)
    at renderWithHooks (react-dom.development.js:16305:1)
    at mountIndeterminateComponent (react-dom.development.js:20074:1)
    at beginWork (react-dom.development.js:21587:1)
The above error occurred in the <Greeting> component:

    at Greeting (http://localhost:3000/static/js/src_examples_local-state-key-change_js.chunk.js:32:3)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

It works fine when I remove the name beforehand.

I am guessing this is due to the fact that I haven't completed the extra credit that turns the input name into JSON before storing it, but the useLocalStorageState in utils expects it to be in that format.

This is handled in 02.extra-4.js with a try/catch that simply removes the offending item, but not in utils.js, so it should be an easy fix :)

Handling fetch request error without .catch

I have a question about the error handling extra credit in useEffect: HTTP requests. In the solution, the useEffect looks like this:

React.useEffect(() => { if (!pokemonName) { return } setPokemon(null) setError(null) fetchPokemon(pokemonName).then( pokemon => setPokemon(pokemon), error => setError(error), ) }, [pokemonName])

My question is, in the event of an error, how come we don't need to implement a .catch? I don't know if I am familiar with handling the error response in the .then.

Is the workshop recorded and available somewhere

I was doing the workshop over night and seemed to have nodded off 3 hours into it (around 430am). I am assuming the workshop was recorded and wondering if this is available somewhere online?

loading state clarification

For the main exercise in Lesson 6, there is this comment:

// 🐨 before calling `fetchPokemon`, make sure to update the loading state

However, as far as I can tell at this stage we don't have a loading state, and are just returning the <PokemonInfoFallback /> component if pokemon is falsy and pokemonName is truthy.

So I'm just wondering if I might open a PR to either clarify this comment or remove it entirely?

Thanks for the amazing course, Kent! I'm learning a bunch 😄

Code syntax highlight not working on any of the workshop repos including this one.

I am having a hard time with the code syntax highlight on the workshop apps for any of the topics including the react-hooks, an issue that I haven't had before.

my local specs:

  • Node v16.15.0
  • npm 8.5.5

I tried uninstalling and reinstalling several times no change. I have an idea what could have triggered it, I did a pull request on the repo after @kentcdodds updated the workshops to latest react 18 versions, not sure if anything happened then. Other than that no clue what could be causing an issue.

unnamed

React hook flow example issue

Hi Kent,

Congrats for such an amazing React course, epic I would say : -)

I just wanted to ask you abou the react hook flow example, and more specifically when I change the state on the App component, showChild state. Question is that the App re-renders and the Child component is mounted, but according to the output I'm getting I see that the App cleanup functions are running before the Child useEffect hooks.

This is what I'm getting:

image

And this is output show in the video:

image

Thank you very much in advance for your thoughts on this.

Jose

Tic tac toe exercise question

Hi Kent,

Working on this exercise, more particularly with the game history extra credit, I've seen that you use a couple of states: history and currentStep, so far so good.
Question is that when you click on any of the squares or you just restart the game, you are calling both setters: setHistory and setCurrentStep so this would trigger at least one re-render of the component. I assumed that React would re-render twice, but by consoling the component I've seen that only one re-render takes place so I was wondering how React manages this particular situation.

Thanks a lot in advance for your comments.

image

Where is the intro/exercises directory?

I'm looking through the README and in the Working Through It section it states:

You'll want to start in the intro/exercises directory where we start with raw React and DOM APIs. Pull open the .html files in your browser and follow along in the comments.

I can't seem to find this folder. Did my setup not work correctly?

I guess using index as item key is considered a very bad and dangerous practice

Hi there 👋
In here https://epicreact.dev/modules/react-hooks/usestate-tic-tac-toe-extra-credit-solution-3 you used the index in the map loop as the key for each li which I guess is considered a very bad and dangerous practice, could you tell us why did you go that way? I'm 100% sure that you are aware of that issue so thought might be something new in React that I'm not aware of.

We don’t recommend using indexes for keys if the order of items may change ...
https://reactjs.org/docs/lists-and-keys.html

src/__tests__/02.js fails

Hello Kent!
src/__tests__/02.js works fine with yours final src/final/02.extra-4.js,
yet when just copying to src/exercise/02.js, same contents,
updating test to take
import App from '../exercise/02'
it fails with on line 14
screen.getByText(/hello.*jill/i)

Thanks!
Avraham

Sentence that might confuse a beginner.

In https://github.com/kentcdodds/react-hooks/blob/main/src/exercise/06.md, it says "This ensures that you don't return anything but a cleanup function", but the example above it does not return a cleanup function. This might be confusing to a beginner who might think that the async function is a cleanup function, or that "effect()" is somehow being magically returned. I feel that the sentence could've been avoided altogether, or phrased as "This ensures that you don't return anything (unless you explicitly return a cleanup function)" - or something along those lines.

Exercise 6 - Extra credit 8 - use resetKeys

For this extra credit, using resetKeys={[pokemonName]} is effectively the same as using key={pokemonName}, because it ends up mounting the <PokemonInfo /> component from scratch. This means the UI still flashes up the idle state.

One way to fix the problem of the flashing idle state is to check the pokemonName when setting the initial status property on the state object. I can see this has been done in the final exercise files for both extra credit 7 and extra credit 8.

Suggestions:

  • Remove status: pokemonName ? 'pending' : 'idle' for extra credit 7, because it doesn't naturally fit with the flow of what is being asked for. (unless I've misread something)
  • Add some extra text to extra credit 8 to mention that resetKeys=[pokemonName] acts similarly to key={pokemonName} and prompt them to think how else the <PokemonInfo /> can be changed so that the status doesn't always start as idle.

Happy to raise a PR if you agree.

Bug report (w/ proposed solution): 02 exercise solution shows incorrect text sometimes.

https://github.com/kentcdodds/react-hooks/blob/0b2d92cc8cca98ad5330dd909821805aa6577a9e/src/final/02.js#L8

Above code needs to be changed to below code (same goes for all the other 02 extra credit solution files):

 window.localStorage.getItem('name') ?? initialName,

This is because the current code causes a bug. The bug is basically not properly accounting for the edge-case where .getItem() can return an empty string. So then the input element will show incorrect text. (When this bug happens and how it looks will be clear when you follow the below steps to reproduce.)

Steps to reproduce the bug:

  1. Edit the 02.js solution file so that you give the Greeting element an initialName prop set to foo.
  2. Run 02 solution on web page.
  3. You'll see that input will have text "foo". Delete all text in input so that it's blank.
  4. Refresh the page.
  5. Here you would expect your empty input value of "" to be loaded from local storage instead of "foo". After all, that is the last value you set for the input. The component should remember that and treat the empty string no differently than any other string. "foo" should only be shown if there is no value with key name in local storage. But instead, you'll see that the result is that the input shows the "foo" text.

You might also want to create a test to check for this bug, since the 02 exercise tests don't catch this bug. And the bug is really easy for your students to make and not notice, so it'd be useful to do I think.

React 18 state batching

i wouldn't expect it to be a huge problem it's cool thing that it might need small updated(or notification) so people can learn about state batching and how it works since React 18 rolled the case where state batching also work on async operations
i think this is no longer an issue as i'v tried it on my actual workspace and it worked fine , or i might be the one missing something ?

Thank your for the effort creating such beautiful and well made course ,

AsyncBatching

[MSW] Stay integrated to browser

Hello,

I cloned this repo and react-fundamentals, and from then I have the mockServiceWorker.js which remains attached in my browser.

How to force it to detach?

image

ErrorBoundary seems to not work with development mode

I'm working on exercise 6 with error boundary and even though my code is exactly the same as yours, it doesn't work. I still see a crashing error.

Screen Shot 2021-08-22 at 20 26 16

I did a little research and seems like ErrorBoundary only works in production mode. In development mode, the red screen will still be shown for easier debugging.

If this is correct then I think it would be great if you can adjust the code template for exercise 6 or adding some notes there.

Thoughts arising from the optimization of useState

@kentcdodds
Hi Kent,I am Aimee.And I am a junior developer.
I've recently encountered some problems in learning react, and I hope I can get some help from you.
if a state of component has updated with the same value, I expect React will not actually rerender the component due to the optimation logic. In the demo below, component rerendered when state value change from 1 to 2, that's what I expected. However, changing the value of state from 2 to 2 will also cause component rendered.
Why does it cause the second rendering?That's I want to ask you.Looking forward to your reply.Thank you.
https://codesandbox.io/s/sweet-maxwell-29o28?file=/src/App.js
#90

reset fails to udpate states other than 'squares'

For some reasons when reset function is invoked only the 'squares' state gets updated but others remain as is. Expected behavior would be all states get updated as a result of the 'squares' state update

Endless rerender on 02.js in Chrome when opening dev tools

It seems there is some interference with NextJS and this repo that is causing endless rerenders in the second course 02.js.

Luckily I have an open source NextJS repo to share on which the bug is occuring when playing together with this repo.

Reproduction:

  • Copy the gist to src/exercise/02.js
  • clone this repo, run yarn && yarn dev, it should open a server on localhost:3000, wait to load the start page
  • stop the server and run this repository on localhost:3000
  • open the isolated page: http://localhost:3000/isolated/exercise/02.js
  • refresh the page (without dev tools open) --> should be alright
  • open dev tools and watch endless rerender

This is verified in Chrome 87.0.4280.141, I did not check other browsers. Here's a video of the bug: https://drive.google.com/file/d/1TQKuMjDM1CPDENWiSg8uI4l3JRPpovvz/view

Node setup doesn't support Node.js 20

Hi, I just run node setup on my system(MacOS Ventura), which has Node.js 20 installed. It gives me an error and recommends that I use Node.js 18 or below. Even more confusing is that it recommends that I update to the latest version of Node. But am already using the latest version:

stanley@MACOOKs-MBP react-hooks % node setup
▶️  Starting workshop setup...
      Running the following command: npx "https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733" -q
    ▶️  Starting: System Validation
          Ensuring the correct versions of tools are installed on this computer.
          Running the following command: npx "https://gist.github.com/kentcdodds/abbc32701f78fa70298d444c2303b6d9"
There were errors validating the compatibility of this computer:

    This computer has [email protected] installed, but node@14 || 16 || 18 is required. Please update node: https://nodejs.org


If you would like to just ignore this error, then feel free to do so and install dependencies as you normally would in "/Users/stanley/react-hooks". Just know that things may not work properly if you do...
    🚨  Failure: System Validation. Please review the messages above for information on how to troubleshoot and resolve this issue.

Unhandled Rejection (Error): [MSW] Failed to register a Service Worker when using network IP

Hi,

On a fresh clone, and after running node setup and npm start. I get an error when trying to open the exercise on a browser, using my network IP.

How to reproduce

  1. Run npm start
  2. Get the 'On Your Network' value. For example, if npm start outputs this
Compiled successfully!

You can now view react-hooks in the browser.

  Local:            http://localhost:3000
  On Your Network:  http://192.168.1.222:3000

Note that the development build is not optimized.
To create a production build, use npm run build.
  1. Navigate to http://192.168.1.222:3000 on your browser
  2. Click on the first exercise.

The iframe will show the following error:

Unhandled Rejection (Error): [MSW] Failed to register a Service Worker: this browser does not support Service Workers (see https://caniuse.com/serviceworkers), or your application is running on an insecure host (consider using HTTPS for custom hostnames).
▶ 10 stack frames were collapsed.
__webpack_require__
src/epicreact/react-hooks/webpack/bootstrap:856
  853 | 
  854 | __webpack_require__.$Refresh$.init();
  855 | try {
> 856 | 	modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  857 | } finally {
  858 | 	__webpack_require__.$Refresh$.cleanup(moduleId);
  859 | }
View compiled
fn
src/epicreact/react-hooks/webpack/bootstrap:150
  147 | 		);
  148 | 		hotCurrentParents = [];
  149 | 	}
> 150 | 	return __webpack_require__(request);
      | ^  151 | };
  152 | var ObjectFactory = function ObjectFactory(name) {
  153 | 	return {
View compiled
1
http://192.168.1.222:3000/static/js/main.chunk.js:1054:18
__webpack_require__
src/epicreact/react-hooks/webpack/bootstrap:856
  853 | 
  854 | __webpack_require__.$Refresh$.init();
  855 | try {
> 856 | 	modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  857 | } finally {
  858 | 	__webpack_require__.$Refresh$.cleanup(moduleId);
  859 | }
View compiled
checkDeferredModules
src/epicreact/react-hooks/webpack/bootstrap:45
  42 | 	}
  43 | 	if(fulfilled) {
  44 | 		deferredModules.splice(i--, 1);
> 45 | 		result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
     | ^  46 | 	}
  47 | }
  48 | 
View compiled
Array.webpackJsonpCallback [as push]
src/epicreact/react-hooks/webpack/bootstrap:32
  29 | 	deferredModules.push.apply(deferredModules, executeModules || []);
  30 | 
  31 | 	// run deferred modules when all chunks ready
> 32 | 	return checkDeferredModules();
     | ^  33 | };
  34 | function checkDeferredModules() {
  35 | 	var result;
View compiled
(anonymous function)
http://192.168.1.222:3000/static/js/main.chunk.js:1:75
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.  Click the 'X' or hit ESC to dismiss this message.

Couldn't run the react app with the npm run setup --silent on windows

the error output is the following

▶️  Starting workshop setup...
      Running the following command: npx "https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733" -q
npm ERR! code 1
npm ERR! Command failed: git submodule update -q --init --recursive
npm ERR! C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 22: .: git-sh-setup: file not found
npm ERR!

Even tho i tried to do an npm install to fix the issue it shows a different type of error and that's very weird

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     **<https://npm.community>**

App doesn't start on MacBook with M1 Chip

Node v14.15.4

Starting the development server...


<--- Last few GCs --->

[57556:0x150008000]     1117 ms: Scavenge 68.7 (97.6) -> 59.3 (97.6) MB, 2.7 / 0.0 ms  (average mu = 0.985, current mu = 0.985) allocation failure 
[57556:0x150008000]     1211 ms: Scavenge 73.7 (97.8) -> 61.5 (97.8) MB, 1.5 / 0.0 ms  (average mu = 0.985, current mu = 0.985) allocation failure 


<--- JS stacktrace --->

FATAL ERROR: wasm code commit Allocation failed - process out of memory
 1: 0x104b229d8 node::Abort() [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
 2: 0x104b22b58 node::errors::TryCatchScope::~TryCatchScope() [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
 3: 0x104c3c384 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
 4: 0x104c3c318 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
 5: 0x1051d1cdc v8::internal::wasm::WasmCodeAllocator::AllocateForCodeInRegion(v8::internal::wasm::NativeModule*, unsigned long, v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
 6: 0x1051d2970 v8::internal::wasm::NativeModule::CreateEmptyJumpTableInRegion(int, v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
 7: 0x1051d1638 v8::internal::wasm::NativeModule::AddCodeSpace(v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
 8: 0x1051d2780 v8::internal::wasm::NativeModule::NativeModule(v8::internal::wasm::WasmEngine*, v8::internal::wasm::WasmFeatures const&, v8::internal::VirtualMemory, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, std::__1::shared_ptr<v8::internal::Counters>, std::__1::shared_ptr<v8::internal::wasm::NativeModule>*) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
 9: 0x1051d4cf4 v8::internal::wasm::WasmCodeManager::NewNativeModule(v8::internal::wasm::WasmEngine*, v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, unsigned long, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
10: 0x1051e0808 v8::internal::wasm::WasmEngine::NewNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, unsigned long) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
11: 0x1051afb54 v8::internal::wasm::AsyncCompileJob::CreateNativeModule(std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, unsigned long) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
12: 0x1051afd1c v8::internal::wasm::AsyncCompileJob::GetOrCreateNativeModule(std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, unsigned long) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
13: 0x1051b8380 v8::internal::wasm::AsyncCompileJob::PrepareAndStartCompile::RunInForeground(v8::internal::wasm::AsyncCompileJob*) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
14: 0x1051b814c v8::internal::wasm::AsyncCompileJob::CompileTask::RunInternal() [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
15: 0x104b7fc08 node::PerIsolatePlatformData::RunForegroundTask(std::__1::unique_ptr<v8::Task, std::__1::default_delete<v8::Task> >) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
16: 0x104b7e8a0 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
17: 0x105335c20 uv__async_io [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
18: 0x1053477e0 uv__io_poll [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
19: 0x1053360b0 uv_run [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
20: 0x104b5af40 node::NodeMainInstance::Run() [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
21: 0x104afb7d0 node::Start(int, char**) [/Users/dguryev/.nvm/versions/node/v14.15.4/bin/node]
22: 0x181464f34 start [/usr/lib/system/libdyld.dylib]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.