Giter Site home page Giter Site logo

testingvue's People

Contributors

jeffreyway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

testingvue's Issues

Unable to compile for newer versions due to incompatible dependencies

package.json before

{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
        "watch": "npm run development -- --watch",
        "watch-poll": "npm run watch -- --watch-poll",
        "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
        "prod": "npm run production",
        "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
    },
    "devDependencies": {
        "axios": "^0.18",
        "bootstrap": "^4.1.0",
        "cross-env": "^5.1",
        "laravel-mix": "^4.0.7",
        "lodash": "^4.17.15",
        "mocha": "^6.2.0",
        "mocha-webpack": "^1.1.0",
        "popper.js": "^1.12",
        "resolve-url-loader": "^2.3.1",
        "sass": "^1.15.2",
        "sass-loader": "^7.1.0",
        "tailwindcss": "^1.0.4",
        "tailwindcss-plugins": "^0.2.0",
        "vue": "^2.5.17",
        "vue-template-compiler": "^2.6.10",
        "vue-test-utils": "^1.0.0-beta.11"
    }
}

npm run test returns compile error

Error trace

WEBPACK Failed to compile with 1 error(s)

Error: Chunk.parents: Use ChunkGroup.getParents() instead
at Chunk.get (/Users/mberneis/dev/nanofetch/node_modules/webpack/lib/Chunk.js:827:9)
at /Users/mberneis/dev/nanofetch/node_modules/mocha-webpack/lib/webpack/util/sortChunks.js:24:15
at Array.forEach ()
at sortChunks (/Users/mberneis/dev/nanofetch/node_modules/mocha-webpack/lib/webpack/util/sortChunks.js:23:10)
at getBuildStats (/Users/mberneis/dev/nanofetch/node_modules/mocha-webpack/lib/webpack/util/getBuildStats.js:28:47)
at TestRunner.prepareMocha (/Users/mberneis/dev/nanofetch/node_modules/mocha-webpack/lib/runner/TestRunner.js:141:52)
at /Users/mberneis/dev/nanofetch/node_modules/mocha-webpack/lib/runner/TestRunner.js:193:36
at /Users/mberneis/dev/nanofetch/node_modules/mocha-webpack/lib/webpack/compiler/registerReadyCallback.js:26:7
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/mberneis/dev/nanofetch/node_modules/tapable/lib/HookCodeFactory.js:32:10), :63:1)
at AsyncSeriesHook.lazyCompileHook (/Users/mberneis/dev/nanofetch/node_modules/tapable/lib/Hook.js:154:20)
at /Users/mberneis/dev/nanofetch/node_modules/webpack/lib/Compiler.js:267:22
at Compiler.emitRecords (/Users/mberneis/dev/nanofetch/node_modules/webpack/lib/Compiler.js:449:39)
at /Users/mberneis/dev/nanofetch/node_modules/webpack/lib/Compiler.js:261:10
at /Users/mberneis/dev/nanofetch/node_modules/webpack/lib/Compiler.js:435:14
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/mberneis/dev/nanofetch/node_modules/tapable/lib/HookCodeFactory.js:32:10), :20:1)
at AsyncSeriesHook.lazyCompileHook (/Users/mberneis/dev/nanofetch/node_modules/tapable/lib/Hook.js:154:20)
at /Users/mberneis/dev/nanofetch/node_modules/webpack/lib/Compiler.js:432:27
at /Users/mberneis/dev/nanofetch/node_modules/neo-async/async.js:2813:7
at done (/Users/mberneis/dev/nanofetch/node_modules/neo-async/async.js:3521:9)
at MemoryFileSystem.writeFile (/Users/mberneis/dev/nanofetch/node_modules/memory-fs/lib/MemoryFileSystem.js:328:9)
at writeOut (/Users/mberneis/dev/nanofetch/node_modules/webpack/lib/Compiler.js:415:30)
at /Users/mberneis/dev/nanofetch/node_modules/webpack/lib/Compiler.js:426:7
at objectIteratorWithKey (/Users/mberneis/dev/nanofetch/node_modules/neo-async/async.js:3508:9)
at timesSync (/Users/mberneis/dev/nanofetch/node_modules/neo-async/async.js:2292:7)
at Object.eachLimit (/Users/mberneis/dev/nanofetch/node_modules/neo-async/async.js:3463:5)
at emitFiles (/Users/mberneis/dev/nanofetch/node_modules/webpack/lib/Compiler.js:321:13)
at Immediate._onImmediate (/Users/mberneis/dev/nanofetch/node_modules/memory-fs/lib/MemoryFileSystem.js:288:4)
at processImmediate (internal/timers.js:439:21)

mix-manifest.json gets modified when running test.

The mix-manifest.json file gets modified when I run test.

I have this...

"test": "mocha-webpack --webpack-config node_modules/laravel-mix/setup/webpack.config.js --require tests/setup.js \"tests/**/*.test.js\"",

in my package.json file.

When I run the test yarn run test, the mix-manifest.json becomes...

{
    "/994b0d397ed25c91c15333907c7d5662-output.js": "/994b0d397ed25c91c15333907c7d5662-output.js"
}

instead of...

{
    "/js/app.js": "/js/app.js",
    "/css/app.css": "/css/app.css",
    "/css/site.css": "/css/site.css",
    "/js/site.js": "/js/site.js"
}

Can you update the episode 6 to show how to correct this issue?

Thanks.

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.