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)

Most upvoted comments

Yes - this is reproducible on master. #3178

I 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 local myproject/.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

Uncaught Error: Cannot find module 'aphrodite/no-important'  packages.js:4

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 all aphrodite/no-important to aphrodite in node_modules/keystone/*, I see the errors in the console

2016-08-20 22:08:90 error building FieldTypes:
Unknown plugin "add-module-exports" specified in "/private/tmp/keystone-test-project/node_modules/inline-style-prefixer/package.json" at 1, attempted to resolve relative to "/private/tmp/keystone-test-project/node_modules/inline-style-prefixer" while parsing file: /private/tmp/keystone-test-project/node_modules/inline-style-prefixer/static.js

then I install babel-plugin-add-module-exports and after changes there another error

2016-08-20 22:08:60 error building FieldTypes:
Couldn't find preset "stage-0" relative to directory "/private/tmp/keystone-test-project/node_modules/inline-style-prefixer" while parsing file: /private/tmp/keystone-test-project/node_modules/inline-style-prefixer/static.js

than I install needed presets

npm i babel-preset-stage-0

then I make another changes and finally I see

2016-08-20 23:08:18 rebuilt FieldTypes
2016-08-20 23:08:43 rebuilt Signin/index.js
2016-08-20 23:08:28 rebuilt App/index.js

and UI works again

Hi @JedWatson - clearing up node_modules and latest master worked fine. Thanks.