I have a customization. I took the code out and edited it in a text editor (vs code) and edited the customization and copy pasta’d the code back in. I get a bunch of these errors.
Make sure VS Code isnt adding some references… Some IDEs that have like Lint enabled or Auto-Refactoring plugins tend to help by auto-resolving namespaces etc…
Also make sure you do a proper
CTRL+A (Select All)
CTRL+V (Paste)
You have to be careful when copying a pasting there are a lot of Comments like
//Wizard
//Epicor Magic
//Etc
which seem kind of arbitrary but Epicor uses those to control your customization. The rule is if you didn’t write it , don’t touch it.
You may have killed one of those comments, also it looks like you declared the same variable that existed there already (at least on an underlying layer)
Again when you export your code manually there are a bunch of little details you don’t need / can’t take. For example if you click “Show all code” and then use that as your code you need to make sure you import the right bits.
Check out the VS Extension it will help with all of these issues.