Code Monkey home page Code Monkey logo

vuejs-cinema's Issues

NPM module security vulnerabilities

I've just updated the repo to replace NPM packages in this repo which have security issues.

If you forked from this repo, you need to sync your fork. Here's a guide:

https://help.github.com/articles/syncing-a-fork/

With that done, run git fetch and git pull in your project directory to pull the changes locally. Then run npm install and the packages will be updated.

If you cloned this repo, run git fetch and git pull in your project directory to pull the changes locally. Then run npm install and the packages will be updated.

Just running "webpack" from the terminal doesn't work anymore

Running "webpack" results in:

The CLI moved into a separate package: webpack-cli
Would you like to install webpack-cli? (That will run npm install -D webpack-cli) (yes/NO)NO

Choosing "yes" results in an install of webpack-cli, but it won't work, since it needs a version of webpack compatible with webpack 4 -- what would be the best way to deal with this issue?

Even after updating package.json, I get the following error

ERROR in ./src/main.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
TypeError: /Users/bobwalsh/vuejs-cinema/src/main.js: this.setDynamic is not a function
    at PluginPass.pre (/Users/bobwalsh/vuejs-cinema/node_modules/babel-plugin-transform-runtime/lib/index.js:31:12)
    at transformFile (/Users/bobwalsh/node_modules/@babel/core/lib/transformation/index.js:96:27)
    at transformFile.next (<anonymous>)
    at run (/Users/bobwalsh/node_modules/@babel/core/lib/transformation/index.js:35:12)
    at run.next (<anonymous>)
    at Function.transform (/Users/bobwalsh/node_modules/@babel/core/lib/transform.js:27:41)
    at transform.next (<anonymous>)
    at step (/Users/bobwalsh/node_modules/gensync/index.js:254:32)
    at /Users/bobwalsh/node_modules/gensync/index.js:266:13
    at async.call.result.err.err (/Users/bobwalsh/node_modules/gensync/index.js:216:11)
    at /Users/bobwalsh/node_modules/gensync/index.js:184:28
    at /Users/bobwalsh/node_modules/@babel/core/lib/gensync-utils/async.js:72:7
    at /Users/bobwalsh/node_modules/gensync/index.js:108:33
    at step (/Users/bobwalsh/node_modules/gensync/index.js:280:14)
    at /Users/bobwalsh/node_modules/gensync/index.js:266:13
    at async.call.result.err.err (/Users/bobwalsh/node_modules/gensync/index.js:216:11)
 @ multi ./src/main.js webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000 main[0]
ℹ 「wdm」: Failed to compile.

package.json:

{
  "name": "vue-cinema",
  "version": "1.1.0",
  "description": "The Ultimate Vue.js Developers Course - Vue.js Cinema",
  "main": "server.js",
  "author": "Anthony Gore <[email protected]>",
  "repository": {
    "type": "git",
    "url": "https://github.com/vuejsdevelopers/vuejs-cinema"
  },
  "license": "UNLICENSED",
  "scripts": {
    "start": "nodemon ./server.js --ignore src/ -e js,html,css",
    "build": "rimraf dist && cross-env NODE_ENV=production webpack --progress --hide-modules"
  },
  "engines": {
    "node": ">=5.10"
  },
  "dependencies": {
    "async": "~3.2.0",
    "axios": "~0.19.2",
    "cross-env": "~7.0.2",
    "dotenv": "~8.2.0",
    "express": "~4.17.1",
    "vue": "^2.6.11",
    "nodemon": "~2.0.3"
  },
  "devDependencies": {
    "babel-core": "~6.26.3",
    "babel-loader": "~8.1.0",
    "babel-plugin-transform-es2015-destructuring": "~6.23.0",
    "babel-plugin-transform-object-rest-spread": "~6.26.0",
    "babel-plugin-transform-runtime": "~6.23.0",
    "babel-preset-env": "~1.7.0",
    "css-loader": "~3.5.3",
    "file-loader": "~6.0.0",
    "moment": "~2.25.3",
    "moment-timezone": "~0.5.28",
    "node-sass": "~4.14.1",
    "open": "~7.0.3",
    "sass-loader": "~8.0.2",
    "style-loader": "~1.2.1",
    "uglify-js": "~3.9.2",
    "vue-loader": "~15.9.2",
    "vue-resource": "~1.5.1",
    "vue-router": "~3.1.6",
    "vue-style-loader": "~4.1.2",
    "vue-template-compiler": "~2.6.11",
    "webpack": "~4.43.0",
    "webpack-dev-middleware": "~3.7.2",
    "webpack-hot-middleware": "~2.25.0",
    "webpack-module-hot-accept": "~1.0.5"
  }
}

npm not install

not install npm in generate error in node_modules

Please Help me.

when using latest version of Vue props don't init properly

Im at the end of lecture 76, and I noticed that the props for the movie-list component were not populated with arrays but with undefined.
So turns out I have Vue 2.1.10 and in order to get it to 'sort of' work I have to change the data member of the root component to return a function:

new Vue({
el: '#app',
data() {
return {
genre: [],
time: []
}
...

And this causes props to be updated on the root component when you click the filter, not movie-list.
when I revert to 2.1.0 everything seems fine though, so Ill continue using that for now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.