keystone-classic: Unknown plugin "transform-class-properties"
Steps to reproduce the behavior
Using a clone of https://github.com/keystonejs/keystone-test-project and its Keystone dependency on the current master branch. Navigate to /keystone.
Expected behavior
No error š
Actual behavior
Keystone throws error.
$ npm start
> keystone-test@1.0.0 start D:\DEV\WORKSPACE\keystone-test-project
> node keystone.js
Application Mounted
------------------------------------------------
KeystoneJS Started:
Keystone Test is ready on port 3000
------------------------------------------------
Application Started
GET /keystone/signin 200 8.241 ms
2016-07-27 16:07:87 error building Signin/index.js:
Unknown plugin "transform-class-properties" specified in "D:\\DEV\\WORKSPACE\\keystone-test-project\\node_modules\\inline-style-prefixer\\package.json" at 0, attempted to resolve relative to "D:\\DEV\\WORKSPACE\\keystone-test-project\\node_modules\\inline-style-prefixer" while parsing file: D:\DEV\WORKSPACE\keystone-test-project\node_modules\inline-style-prefixer\static.js
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 19 (8 by maintainers)
Yes - this is reproducible on
master
. #3178I had the same error, unrelated to Keystone, so in case it will help anyone, here is what fixed itā¦
I was using the Babel transpiler and noticed that my
~/.babelrc
had the ātransform-class-propertiesā dependency specified. So, I created a localmyproject/.babelrc
with only{ "presets": ["env"] }
inside.It worked after that!
@PatrickJongmans now there is another error in console of the browser and no UI renders
tested on MAC OS on fresh keystone-test-project with latest keystone from repo
I have tried to understand whats wrong: When I run the project with
npm run dev
then change allaphrodite/no-important
toaphrodite
innode_modules/keystone/*
, I see the errors in the consolethen I install
babel-plugin-add-module-exports
and after changes there another errorthan I install needed presets
then I make another changes and finally I see
and UI works again
Hi @JedWatson - clearing up
node_modules
and latest master worked fine. Thanks.