question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

type Plugin should be JSPlugin

See original GitHub issue

(Edited I provided more info) (edited) Should be JSSPlugin (edited) corrected for versions, the jss plugin used, the jss, and the @types/jss

  • All installation was with npm without explicitly specifiying any versions
  • It jss plugins, jss itself, and the typescript decl @types/jss were all installed in the same time

jss-plugin-camel-case

Used npm i --save jss-plugin-camel-case to install it, no explicit version specified Looking in the node_modules it installs version “10.0.0-alpha.7”

The typescript index.d.ts of the jss-plugin-camel-case

import {Plugin} from 'jss'

export default function jssPluginSyntaxNested(): Plugin

Versions (please complete the following information):

  • @types/jss: version “9.5.8”
  • jss: version “9.8.7”
  • jss-plugin-camel-case: version “10.0.0-alpha.7”
  • Browser: chrome
  • OS: Windows

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
HenriBeckcommented, Aug 2, 2019

Just do npm install jss@next and remove the @types/jss dependency

0reactions
jacobbogerscommented, Aug 2, 2019

Ok, works

I also noticed the new jss.create({ plugins }) needs an array of type plugins instead of functions creating plugins (options:Options) => Plugin

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle 6.0.1 Build Failed · Issue #177 · eriwen/gradle-js-plugin
today gradle 5.6.2 to 6.0.1 upgrade but 6.0.1 build fail a plugin * What went ... Could not create an instance of type...
Read more >
Video.js Plugins
One of the great strengths of Video.js is its ecosystem of plugins that allow authors from all over the world to share their...
Read more >
Create a Custom Vue.js Plugin in < 1 Hour [Code Included]
Vue.js plugins are essential for developers working with this JS framework. This post explains what they are, and how to craft a ...
Read more >
How to apply the gradle js plugin
Hi guys, I'm new here to the forum and to Gradle. So I am a complete beginner when it comes to gradle. We...
Read more >
Plugins - Vue.js
js plugins, we will create a very simplified version of a plugin that displays i18n (short for Internationalization) strings. Let's begin by setting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found