
Hello everyone,
I'm trying to build a component framework. However, when I ran "npm run build" at my woking folder, it gave error like in the image.
I've tried to run "npm cache clean --force", delete the node_modules folder and package-lock.json file, then "npm install" again, but that didn't work for me.
Do anyone know how to resolve this? Appreciate any help. Thank you so much.
You might have linting rules getting in the way, but I'm pretty sure that gives you a pretty clear error when you're just doing a build instead of a start or a push.
Maybe you just need to update your PAC and reinitialize the project. Try that. Use pac install latest (or something like that) to update your install, then pac pcf init a new test project, np install, and build. If that works, then just copy over your customizations and build from this new project.