Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

If not given a variable initialization, it will cause compilation error #46

Closed
@es3154

Description

@es3154

In <script setup> declare a variable, if not initialization can cause compilation exceptions,

**Module Error (from ./node_modules/unplugin-vue2-script-setup/node_modules/unplugin/dist/webpack/loaders/transform.js):
Cannot read property 'callee' of null
**

`<script setup>

defineProps(["msg"]);

let s;
// let s = 2;

</script>`

unplugin-vue2-script-setup": 0.6.7
@vue/composition-api: 1.1.0,
vue: ^2.6.14
webpack": "^5.50.0

https://github.com/es3154/vue2ScriptSetupTest

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