Skip to content

console cannot find path function on the playground #13483

Closed
vuejs/repl
#346
@gweesin

Description

@gweesin

Vue version

3.5.16

Link to minimal reproduction

https://play.vuejs.org/#eNp9kU9LAzEQxb/KmMsq1F1K1UPZFlQK6kFFBS8BKdvpNjWbhPxZC8t+dydZWnuQ3jLvvZn8MunYrTF5G5BNWekqK4wHhz6YOVeiMdp66MDiGnpYW91ARtGMK64qrZyHxtUwi/559oBSavjUVq7OsguuymIYR4Oo8NgYufRIFUC5Gc+7LjX3fVlQlVShTPDQXjZ6hXLGGfmcQUFmWRz1sxHzjq5fizrfOq2IvIv9nFW6MUKifTFeEB5nU0hO9JZE9/OUNG8DjvZ6tcHq+x9963ZR4+zVokPbImcHzy9tjX6wF+/PuKPzwST6ICl9wnxDp2WIjEPsLqgVYR/lEu1j2r9Q9Ydb7Dwqt39UBI3JPuU5oz+5P/H0P9xJfpX6uOppi18t2jiTFjjJr/PxDet/AWCOrLM=

Steps to reproduce

  1. Visiting the minimal reproduction
  2. Using Ctrl + Shift + I to open Browser Dev Tools
  3. Click Console panel

What is expected?

Nothing be warned.

What is actually happening?

vue.worker-Dc6PZdLj-C1ykw0lc.js:16133 Language service plugin "vue-template (html)" (8) failed to provide document feature for volar-embedded-content://template/file%253A%252F%252F%252Fsrc%252FApp.vue. TypeError: path.basename is not a function
    at getSelfComponentName (vue.worker-Dc6PZdLj-C1ykw0lc.js:145334:28)
    at _getComponentNames (vue.worker-Dc6PZdLj-C1ykw0lc.js:145397:50)
    at Object.getComponentSpans (vue.worker-Dc6PZdLj-C1ykw0lc.js:145600:77)
    at Object.provideDocumentSemanticTokens (vue.worker-Dc6PZdLj-C1ykw0lc.js:146018:63)
    at tokens.map.range.start.line (vue.worker-Dc6PZdLj-C1ykw0lc.js:18625:62)
    at vue.worker-Dc6PZdLj-C1ykw0lc.js:16111:62
    at safeCall (vue.worker-Dc6PZdLj-C1ykw0lc.js:16130:23)
    at docsWorker (vue.worker-Dc6PZdLj-C1ykw0lc.js:16111:47)
    at async languageFeatureWorker (vue.worker-Dc6PZdLj-C1ykw0lc.js:16068:14)
    at async Object.getSemanticTokens (vue.worker-Dc6PZdLj-C1ykw0lc.js:18613:25)

System Info

Any additional comments?

No response

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