After following the guide, I reached the point where creating a Vue instance was necessary (which seemed to work). However, it also required providing a Vue Router instance into the Vue constructor, as shown below.
const router = new VueRouter({ routes });
const app = new Vue({ router }).$mount('#app');
Unfortunately, this resulted in an error. Troubleshooting this issue has not yielded much information as encountered while google searching.
Uncaught ReferenceError: VueRouter is not defined(…)
I have verified that both packages are installed, along with some additional ones.
+-- <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cdbbb8a88dffe3fde3f5">[email protected]</a>
+-- <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="81f7f4e4ace2ede8c1b3afb4afb0">[email protected]</a>
+-- <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1c6a6979316e736968796e5c2e322c322f">[email protected]</a>
I have not implemented the importing for these two yet (uncertain about the placement in the code, and attempting with my index.js resulted in errors recognizing the token). However, I believe they may not be essential since Vue is recognized while only its router seems to cause issues. If importing is crucial, I assume both would fail if omitted.
import Vue from 'vue'
import VueRouter from 'vue-router'
The situation is further complicated because the decision was made to run it under Net.Core instead of NodeJs, which might pose limitations. We will not be using Webpack or Browserify to streamline the process (opting for plain dotnet run). Although this information may not be relevant at this stage, it's worth noting that what was supposed to be "so simple and easy" according to sources, appears more complex and cumbersome than anticipated. It seems straightforward in a specific environment but requires hands-on adjustments in my case.
What steps can I take to delve deeper into investigating this issue?