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.

Problem with `selectBlock`

See original GitHub issue

Version

15.0.0

Reproduction link

https://github.com/riophae/vue-loader-bug

Steps to reproduce

  1. Clone the repo
  2. Install dependencies
  3. Run npx webpack

What is expected?

It should build successfully.

What is actually happening?

Got error:

ERROR in ./src/App.vue?type=template (./node_modules/vue-loader/lib!./src/App.vue?type=template)
Module build failed: TypeError: Cannot read property 'content' of null
    at selectBlock (/mnt/d/Projects/vue-loader-bug/node_modules/vue-loader/lib/select.js:6:27)
    at Object.module.exports (/mnt/d/Projects/vue-loader-bug/node_modules/vue-loader/lib/index.js:58:12)
 @ ./src/entry.js 4:17-62

The error is caused by this line: https://github.com/riophae/vue-loader-bug/blob/master/src/entry.js#L4

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
sschneider-ihre-pvscommented, Sep 16, 2021

I seem to get the same error like <filename>.vue?vue&type=script&lang=ts&setup=true in vue-loader@16.4.1

TypeError: Cannot read property 'content' of null

  - select.js:23 Object.selectBlock
    [<project>]/[vue-loader]/dist/select.js:23:45
1reaction
yyx990803commented, Apr 26, 2018

You need to do require('!raw-loader!vue-loader!./App.vue?vue&type=template')

The leading ! disables all other loaders and raw-loader exports the selected content as a JavaScript string.

Note this is not part of the public API and may break without notice.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem publishing project - Questions - Radsystems Forum
Hi When I want to publish the project I get the following error: select.js:23 selectBlock [frontend]/[vue-loader]/dist/select.js:23:45 I'm ...
Read more >
React Webpack. Why do I get an error when calling a function ...
The parent component passes the renderHack() function to the selectBlock component. The function fires the error: Uncaught TypeError: Cannot ...
Read more >
SelectBlock | AutoCAD - Autodesk App Store
Run the command selectblock. Dialog box will appear. Select the block or multiple block types, select attributes name and add condition over attributes...
Read more >
Error: Call to a member function getPattern() on null in Drupal ...
Problem /Motivation After upgrading the ctools module to the latest version, ... () on null in Drupal\panels\Controller\Panels->selectBlock().
Read more >
How do we exit a CASE SELECT block? - Microsoft Community Hub
Yet, whenever we try to use this, we get a compile error. We are attempting to use the EXIT SELECT to end processing...
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