Static GitHub Issues

[944] The following object does not support the "find" property or method

prev: nuxt-link params refresh page params undefined.
next: Can I have Nuxt ignore a path?

@pi0 import Vue from 'vue' import Vuex from 'vuex'

Vue.use(Vuex)

// Recursive find files in ~/store const files = require.context('~/store', true, /^.\/.*.(js|ts)$/) const filenames = files.keys()

// Store let storeData = {}

// Check if store/index.js exists

//The following object does not support the "find" property or method (in IE)

const indexFilename = filenames.find((filename) => filename.includes('./index.'))

if (indexFilename) { storeData = getModule(indexFilename) }

<!--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/c811">#c811</a>)</em></sub></div>