@pitaj
It displays all plugins with the label about compatibility, like "No compatibility data available for this plugin.", "This plugin is compatible with NodeBB 1.17.1", etc.
My plugin made building nodebb.min.js failed
-
So now after activating my plugin and restarting nodebb,
nodebb.min.js
contains only one line:undefined
, always in production mode and sometime in dev mode.Is there something wrong with my client code that it made the build failed ? It pass through airbnb style guide, and used to work as expected
It's here:
$(document).ready(function () { 'use strict'; $(window).on('action:ajaxify.end', function () { // console.log(info); $('#autoduc-button').click(function () { $('#autoduc-dialog').modal(); }); $('#autoduc-send').click(function () { const url = $('#autoduc-url').val(); // console.log(url); $.post('/api/autoduc', { url: url, cid: ajaxify.data.cid, }, function success(data) { const tid = data.tid; if (tid) { ajaxify.go('topic/' + tid); } else { app.alert({ alert_id: 'autoduc-failed', type: 'danger', title: 'Failed', message: 'Post not found', }); } }); }); }); });
Nodebb: 1.5.2
Node: 6.11.2Thanks in advance.
-
Replace
const
withvar
the minifier we use does not support es6 yet. -
@baris tks u very much, now code works.
Let add this to the plugin docs.
Suggested Topics
-
Unsolved Filter for plugins
Technical Support • • phenomlab
Copyright © 2022 NodeBB | Contributors