iconDirs pathresolveprocesscwd srcassetsiconsReferenceError path is not defined
The error message indicates that path is not defined. path is a built-in module in Node.js that provides utilities for working with file and directory paths.
To resolve this error, you need to import the path module at the beginning of your script using the require function:
const path = require('path');
Make sure to include this line of code before using path.resolve() function in your iconDirs array.
原文地址: https://www.cveoy.top/t/topic/iyt4 著作权归作者所有。请勿转载和采集!