Closed cipchk closed 4 months ago
You can try making the following changes:
less.render(themeContent, {
paths: [__dirname + '/node_modules/'] // <-- add __dirname
}).then(data => {
console.log('css => ', data.css);
}).catch(e => {
console.error(e);
});
To install the ng-zorro-antd dependency in a new Angular project:
And add
test.js
, after runnode ./test.js
:Returns an error:
It seems that @plugin doesn't support require. It's normal for files like bezierEasing.js not to use require. However, for plugins like tinyColor.js and colorPalette.js, tinycolor2.js cannot be found.