Skip to content

npm run build is broken with "Cannot read property 'stat' of undefined" #2847

Closed
@amir20

Description

@amir20

Version

3.0.5

Reproduction link

https://gist.github.com/amir20/741117cd85858949c866e01dcf578a7f

Node and OS info

node v10.7.0, npm 6.1.0

Steps to reproduce

npm install -g @vue/cli
vue create -d hello-world
cd hello-world
npm run build

What is expected?

Successfully be able to build for production

What is actually happening?

⠙  Building for production...

 ERROR  Failed to compile with 1 errors                                                                                                                                                             3:47:08 PM

 error  in ./src/App.vue?vue&type=script&lang=js&

Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
Thread Loader (Worker 1)
Cannot read property 'stat' of undefined

    at toDepDetails (/hello-world/node_modules/cache-loader/dist/index.js:65:14)
    at arrayIterator (/hello-world/node_modules/neo-async/async.js:3780:9)
    at timesSync (/hello-world/node_modules/neo-async/async.js:2292:7)
    at Object.mapLimit (/hello-world/node_modules/neo-async/async.js:3775:5)
    at Array.<anonymous> (/hello-world/node_modules/cache-loader/dist/index.js:88:18)
    at arrayEachFunc (/hello-world/node_modules/neo-async/async.js:2512:19)
    at Object.parallel (/hello-world/node_modules/neo-async/async.js:6867:9)
    at Object.loader (/hello-world/node_modules/cache-loader/dist/index.js:87:9)

 @ ./src/App.vue?vue&type=script&lang=js& 1:0-302 1:318-321 1:323-622 1:323-622
 @ ./src/App.vue
 @ ./src/main.js
 @ multi ./src/main.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions