cyan33/learn-react-source-code

demo 下 npm run watch 报错

Closed this issue · 3 comments

ERROR in ../dilithium/index.js
Module build failed: ReferenceError: Unknown plugin "transform-class-properties" specified in "/Users/yangran/project/learn-react-source-code/dilithium/package.json" at 0, attempted to resolve relative to "/Users/yangran/project/learn-react-source-code/dilithium"

It works well on my end. Can you try deleting the node_modules and re-run npm install?

I have the same error.
image

I've tested again and it works on my end.

This error is likely because of it doesn't have transform-class-properties installed (I don't know why because it's already been specified in package.json). You might want to try this:

npm install babel-plugin-transform-class-properties