How to Fix Nuxt.js 'Enable vuex store by creating store/index.js.' Error
Tadashi Shigeoka · Sat, December 19, 2020
I’ll introduce how to fix the Enable vuex store by creating store/index.js. error in Nuxt.js.
<img src=“https://res.cloudinary.com/codenote-net/images/w_auto:100:582,f_auto,q_auto/v1562591707/Nuxt.js/Nuxt-js-png?_i=AA” class=“alignnone title=“Nuxt.js” alt=“Nuxt.js”>
Background
Prerequisites: Nuxt.js v2.14.7
- Nuxt.js version 2.14.7
- Node.js version 14.15.1
Enable vuex store by creating store/index.js Error
When running npm run dev, the following error occurred:
Nuxt Fatal Error
Enable vuex store by creating store/index.js.
Solution: Create store/index.js
You can resolve the Enable vuex store by creating store/index.js. error simply by creating store/index.js.
For JavaScript: touch store/index.js
touch store/index.js
For TypeScript: touch store/index.ts
touch store/index.ts
That’s all from the Gemba on resolving the Nuxt.js Enable vuex store by creating store/index.js. error.