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.

Plugin error on version 3.0.0-rc.6

See original GitHub issue

I’m doing some testing with plugins around this version and when I try to use a custom plugin I get the message plugins.map is not a function

I don’t get the error if I just put "plugins": []"

my .solhint.json looks like so:

test

Without plugins it works just fine.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Jaime-Iglesiascommented, Apr 4, 2020

Hmm, sounds like we should show a better error when whatever is exported by the plugin is wrong. I will reopen this issue to track that improvement.

if it helps, what I was missing was the module.exports with all the clases in my custom rules. i.e

class MyRuleA {
...
}

class MyRuleB {
...
}

module.exports = [MyRuleA, MyRuleB] // I was missing this line
1reaction
fvictoriocommented, Apr 4, 2020

I will add, that writting custom rules is now easy as pie compared to the previous version - great job!

Thanks btw! That was the main goal of a huge refactor we did 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugin Error: Can't find `registerPlugin` when requiring other ...
When you are in a separate file creating a plugin and you call registerPlugin to register the plugin, you get an error when...
Read more >
Facebook for WordPress (version 3.0.6) causing fatal error
Hi! On my site, Facebook for WordPress (version 3.0.6) is causing fatal errors on wp-admin/admin-post.php. WordPress sent me an automatic email with more ......
Read more >
Git plugin version 4.0.0-rc failed to load - Jenkins Jira
Re-installed again the latest Git Client plugin but the error remains. The log refers to install version 3.0.0-rc or later of the Jenkins...
Read more >
Capacitor 3.0 Upgrade Plugins "not implemented" Exception ...
I have installed every plugin for the whole app (the root) and for the nx-capacitor app (the capacitor app added with @nxtend-capacitor) as ......
Read more >
OMERO plugin error in Fiji - Usage & Issues - Image.sc Forum
I have installed the latest version of Fiji, and the latest version of the OMERO/imageJ plugin and I was able to connect. Still...
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