我确实将Jar文件添加到Project中的库中,但是当我执行一些代码以使用该文件中的包时,它总是给我NodeInvocationException: vendor_d005eb3fe6af483deeda is not defined
process.env.VUE_ENV = 'server';
const fs = require('fs');
const path = require('path');
const prerendering = require('aspnet-prerendering');
const filePath = path.join(__dirname, '../wwwroot/dist/main-server.js')
const code = fs.readFileSync(filePath, 'utf8');
const bundleRenderer = require('vue-server-renderer').createBundleRenderer(code);
module.exports = prerendering.createServerRenderer(function (params) {
return new Promise(function (resolve, reject) {
const context = { url: params.url };
bundleRenderer.renderToString(context, (err, resultHtml) => {
if (err) {
reject(err.message);
}
resolve({
html: resultHtml,
globals: {
__INITIAL_STATE__: context.state
}
});
});
});
});
然后我得到了java.lang.ClassNotFoundException
try{
UIManager.setLookAndFeel("com.jtattoo.plaf.fast.FastLookAndFeel");
SwingUtilities.updateComponentTreeUI(this);
}catch(Exception e){
e.printStackTrace();
}
然后我得到了java.lang.ClassNotFoundException: com.jtattoo.plaf.fast.FastLookAndFeel
我知道我的代码是正确的,并且Jar文件也很好,因为我的朋友很好地使用了它。我的Netbeans是否出现一些错误?