GithubHelp home page GithubHelp logo

building-react-from-scratch's Issues

Is there something wrong with update method

in MultiChild.js file

case UPDATE_TYPES.MOVE: DOM.insertChildAfter( parentNode, parentNode.childNodes[fromIndex], update.afterNode, ); break;
move method depends on 'fromIndex' (which is previous componet's _mountindex),which should be changed once some component insert before
feels like that move method should rely on real DOM node, but not _mountindex

Module build failed: ReferenceError: Unknown plugin "transform-class-properties"

ERROR in ../dilithium/index.js
Module build failed: ReferenceError: Unknown plugin "transform-class-properties" specified in "/Users/qinhao/git_clone/learn-react-source-code/dilithium/package.json" at 0, attempted to resolve relative to "/Users/qinhao/git_clone/learn-react-source-code/dilithium"
    at /Users/qinhao/git_clone/learn-react-source-code/demo/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
    at Array.map (<anonymous>)
    at Function.normalisePlugins (/Users/qinhao/git_clone/learn-react-source-code/demo/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/Users/qinhao/git_clone/learn-react-source-code/demo/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (/Users/qinhao/git_clone/learn-react-source-code/demo/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Users/qinhao/git_clone/learn-react-source-code/demo/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/Users/qinhao/git_clone/learn-react-source-code/demo/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/Users/qinhao/git_clone/learn-react-source-code/demo/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Users/qinhao/git_clone/learn-react-source-code/demo/node_modules/babel-loader/lib/index.js:46:20)
    at Object.module.exports (/Users/qinhao/git_clone/learn-react-source-code/demo/node_modules/babel-loader/lib/index.js:163:20)
 @ ./app.js 1:18-41

Still got the same after trying npm install babel-plugin-transform-class-properties

npm version:
6.1.0
node version:
v10.6.0

Unknown plugin "transform-react-jsx" specified in "base" at 0

hey! trying to run this and getting this error:

ERROR in ../dilithium/dilithium.js
Module build failed: ReferenceError: Unknown plugin "transform-react-jsx" specified in "base" at 0, attempted to resolve relative to "/Users/swyx/OpenSource/building-react-from-scratch/dilithium"
    at /Users/swyx/OpenSource/building-react-from-scratch/demo/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
    at Array.map (<anonymous>)
    at Function.normalisePlugins (/Users/swyx/OpenSource/building-react-from-scratch/demo/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/Users/swyx/OpenSource/building-react-from-scratch/demo/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (/Users/swyx/OpenSource/building-react-from-scratch/demo/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Users/swyx/OpenSource/building-react-from-scratch/demo/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/Users/swyx/OpenSource/building-react-from-scratch/demo/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/Users/swyx/OpenSource/building-react-from-scratch/demo/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Users/swyx/OpenSource/building-react-from-scratch/demo/node_modules/babel-loader/lib/index.js:46:20)
    at Object.module.exports (/Users/swyx/OpenSource/building-react-from-scratch/demo/node_modules/babel-loader/lib/index.js:163:20)
 @ ./app.js 3:18-41

is this because the jsx transform was renamed or moved somehow?

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.