Currently, I am delving into incorporating vue.js into a live django project and have come across a stumbling block.
After setting up npm in the venv environment and installing the vue package, my next step is to create a Vue object within a js file using:
import Vue from 'vue'
However, when I attempt this, I encounter the following error in the console:
Uncaught SyntaxError: Cannot use import statement outside a module
I've scoured for solutions to this problem but haven't found a suitable answer tailored to my specific scenario.
What steps should I take next in order to effectively utilize vue js through the npm package?