Cursor is not compiling correctly?

I’m a no experience aspiring coder

using npm start in cursor = old code being compiled and ran
using npm start in VS Code = updated code being compiled and ran

You’ll have to include some more context for anyone to help here, I’m afraid!