[Vuejs]-Uncaught SyntaxError: Unexpected strict mode reserved word Vue.js

0👍

Are you using TypeScript? If so, interface is a reserved keyword used for declaring an interface https://www.typescriptlang.org/docs/handbook/interfaces.html

A simple fix would be to give your variable a different name. Even something as simple as changing it to myInterface should solve the problem.

If you are not using TypeScript though, the error you’re seeing is unexpected.

Leave a comment