Closed dsbert closed 7 years ago
Webpack is not set up by default to resolve .vue modules without providing an extension. Adding the following configuration will enable this ability.
.vue
// fails import GetStartedView from '../views/GetStartedView' // succeeds import GetStartedView from '../views/GetStartedView.vue'
In webpack.base.config.js:
webpack.base.config.js
resolve: { extensions: ['*', '.js', '.json', '.vue'], alias: { 'public': path.resolve(__dirname, '../public') } },
// succeeds import GetStartedView from '../views/GetStartedView' // succeeds import GetStartedView from '../views/GetStartedView.vue'
Webpack is not set up by default to resolve
.vue
modules without providing an extension. Adding the following configuration will enable this ability.In
webpack.base.config.js
: