vuejsdevelopers / vuejs-cinema Goto Github PK
View Code? Open in Web Editor NEWSource code for the case-study project from the course Build A Vue.js Single-Page App with Vue Router
Source code for the case-study project from the course Build A Vue.js Single-Page App with Vue Router
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.
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?
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"
}
}
I've followed the readme.md instructions and ended up getting this error while building with webpack so any solution that will work out?
not install npm in generate error in node_modules
Please Help me.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.