Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Module parse failed: Unexpected token when importing v1.0.1 #88

@alvarosabu

Description

@alvarosabu

Describe the bug
Error when shows up when npm run serve a TS Vue3 App that imports the lib.

in ./node_modules/@asigloo/vue-dynamic-forms/dist/as-dynamic-forms.esm.js

Module parse failed: Unexpected token (47:67)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|     props,
|     setup(props, { emit }) {
>         const { onChange, onFocus, onBlur } = useInputEvents(props?.control, emit);
|         return () => h('input', {
|             name: props?.control?.name || '',

 @ ./src/main.ts 21:0-64 22:22-40
 @ multi (webpack)-dev-server/client?http://192.168.0.168:9573&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts

To Reproduce
Steps to reproduce the behavior:

  1. Install '@asigloo/vue-dynamic-forms@next`
  2. Add the import into main.ts

Actual behavior
Doesn't compile

Expected behavior
Should compile

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions