Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'push' of undefined #2

Open
magick93 opened this issue Feb 18, 2018 · 1 comment
Open

TypeError: Cannot read property 'push' of undefined #2

magick93 opened this issue Feb 18, 2018 · 1 comment

Comments

@magick93
Copy link

magick93 commented Feb 18, 2018

When I run npm run dev I get the following errors:

❯ npm run dev

> [email protected] dev /home/anton/git/nuxt-api-example
> nuxt


 ERROR  Nuxt error

  TypeError: Cannot read property 'push' of undefined

and

 ERROR  Failed to compile with 3 errors                                    10:41:23

These dependencies were not found:

* ~components/Header.vue in ./node_modules/babel-loader/lib?{"babelrc":false,"cacheDirectory":true,"presets":[["/home/anton/git/nuxt-api-example/node_modules/babel-preset-vue-app/dist/index.common.js",{"targets":{"ie":9,"uglify":true}}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./layouts/default.vue
* ~plugins/axios.js in ./store/index.js
* ~static/markdownFiles/HomeContent.md in ./node_modules/babel-loader/lib?{"babelrc":false,"cacheDirectory":true,"presets":[["/home/anton/git/nuxt-api-example/node_modules/babel-preset-vue-app/dist/index.common.js",{"targets":{"ie":9,"uglify":true}}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./pages/index.vue

To install them, you can run: npm install --save ~components/Header.vue ~plugins/axios.js ~static/markdownFiles/HomeContent.md

@dev7ch
Copy link

dev7ch commented May 10, 2018

I experienced the same and solved it like that:

1.) use the latest version of markdownit
in your package.json change to"@nuxtjs/markdownit": "latest", (v.1.2.1 is the latest one)

2.) replace all dependency load paths like ~components/Header.vue with ~/components/Header.vue or better @/components/Header.vue
.. it's basicly the missing / i guess

szvest added a commit to szvest/nuxt-api-example that referenced this issue Jun 9, 2018
@nuxtjs/markdownit to "latest" - see davidroyer#2 (comment)

@nuxtjs/bulma updated
szvest added a commit to szvest/nuxt-api-example that referenced this issue Jun 9, 2018
szvest added a commit to szvest/nuxt-api-example that referenced this issue Jun 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants