question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to build for missing `descriptor.scriptCompiled` inside `selectBlock`

See original GitHub issue

Version

16.0.0-beta.6

Steps to reproduce

node_modules/@vue/cli-service/node_modules/vue-loader-v16

 ERROR  Failed to compile with 1 errors       

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

Module build failed (from ./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js):
TypeError: Cannot read property 'content' of undefined
    at Object.selectBlock (/Users/hekai/Workspace/baidu/hairuo-uploader/demo/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/select.js:24:45)
    at Object.loader (/Users/hekai/Workspace/baidu/hairuo-uploader/demo/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js:59:25)

 @ ./src/App.vue?vue&type=script&lang=js 1:0-292 1:0-292 1:293-574 1:293-574
 @ ./src/App.vue
 @ ./src/main.js
 @ multi ./src/main.js

I found that selectBlock is invoked while descriptor.scriptCompiled have not been assigned. No more idea about the issue.

https://github.com/vuejs/vue-loader/blob/f19f2b36ac6e8c7c2312767d14bfba3e9ea8ea55/src/index.ts#L105-L108

https://github.com/vuejs/vue-loader/blob/f19f2b36ac6e8c7c2312767d14bfba3e9ea8ea55/src/index.ts#L134

https://github.com/vuejs/vue-loader/blob/f19f2b36ac6e8c7c2312767d14bfba3e9ea8ea55/src/select.ts#L25-L29

image

image

What is expected?

Build success

What is actually happening?

Build failed

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ux-engineercommented, Oct 1, 2020

Interesting - I’m not experiencing this issue anymore. I don’t think I’ve upgraded any package that could have affected this or done any major changes as the problem appeared for a whole bunch of components, however, I did nuke node_modules, remove package-lock.json, and reinstalled packages…

0reactions
sodateacommented, Nov 26, 2020

Should have been fixed in v16.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

r/eu4 - Mod missing descriptor file error - Any updates or new ...
I checked some other mod's path and the path was not even specified in the file but it works. path="C:/Program Files (x86)/Steam/steamapps/ ...
Read more >
Script Debugger Help - Late Night Software
If you attempt to open a compiled script that targets a missing application. In this case, on Mac OS X 10.4 (Tiger) and...
Read more >
Mod missing descriptor file - Stellaris - Steam Community
For some reason, I am unable to launch or play the mod, because it is "Missing a descriptor file." I've uninstalled and reinstalled...
Read more >
Script Debugger Help - Amazon S3
NOTE: If you attempt to save a script and there's a compile error, Script. Debugger will offer, in the Compile Error dialog, to...
Read more >
Vue.js - Bountysource
We tried to use scoped CSS in our components. In our application we also make use of slots. We came across the problem...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found