Static GitHub Issues

[2102] How to extract common mutations between modules?

prev: when in nuxt use <img :src="url" /> error 404 not found pic
next: path to assets folder is not resolved when using <object>/<embed>

I have some store modules that have some similar mutations . So, I decide to extract it to mutations.js But, I don't know how to load it in nuxt. simple import seems fail Here's the directories

store/
---common/
------mutations.js
---module1.js
---module2.js

Here's how I import it in module1.js

import mutations from './common/mutations'
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1863">#c1863</a>)</em></sub></div>