Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript Support #21

Open
Shumuu opened this issue Nov 16, 2020 · 0 comments
Open

Typescript Support #21

Shumuu opened this issue Nov 16, 2020 · 0 comments

Comments

@Shumuu
Copy link

Shumuu commented Nov 16, 2020

Hello fellow developers!

Is there any Typescript support ? I tried to implement it myself but failed :(

I tried following this: https://webpack.js.org/guides/typescript/ but it didn't work and spew a bunch of errors out.

ERROR in ./app/shortcode.ts 11:75
Module parse failed: Unexpected token (11:75)
File was processed with these loaders:
 * ./node_modules/ts-loader/index.js
You may need an additional loader to handle the result of these loaders.
|     for (var i = 0; i < shortcode_containers.length; ++i) {
|         var objectId = shortcode_containers[i].getAttribute('data-object-id');
>         ReactDOM.render(wpObject, (_a = { window: window }, _a[objectId] = , _a) /  > , shortcode_containers[i]);
|     }
| });

Hope someone can help me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant