Recently, I encountered a peculiar problem while working on my Vue project using Vue UI in Visual Studio.
Before connecting my API, I wanted to prototype and experiment with fake data. So, I decided to create a JSON file in the assets folder to store my mock data and import it for UI development.
However, upon creating the JSON file in the assets folder and re-rendering the project in Vue UI, I encountered the following error:
app.js:1178 Uncaught Error: Cannot find module './assets/moockupdata.json'
at webpackMissingModule (app.js:1178:45)
at Object../src/assets/moockupdata.json (app.js:1178:145)
at __webpack_require__ (app.js:854:30)
at fn (app.js:151:20)
at webpackContext (eval at ./src sync recursive [A-Za-z0-9-_,\s]+\.json$/ (app.js:1087:1), <anonymous>:11:9)
...
This issue has left me feeling stuck and confused. Any assistance would be greatly appreciated.
Thank you.