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

Failed to compile. #23

Closed
pihart opened this issue Oct 9, 2020 · 0 comments
Closed

Failed to compile. #23

pihart opened this issue Oct 9, 2020 · 0 comments

Comments

@pihart
Copy link
Collaborator

pihart commented Oct 9, 2020

Module parse failed: Cannot use keyword 'await' outside an async function (67:20)
src/lib/clipboard.ts 67:20
File was processed with these loaders:
 * ./node_modules/@pmmmwh/react-refresh-webpack-plugin/src/loader/index.js
 * ./node_modules/awesome-typescript-loader/dist/entry.js
You may need an additional loader to handle the result of these loaders.
|                 if (obj._objects) {
|                     obj.canvas = this.canvas;
>                     await obj.forEachObject((object) => {
|                         this.canvas.getNextId().then((id) => {
|                             object.id = id;

Issue is due to clipboard.ts

cjquines added a commit that referenced this issue Oct 9, 2020
cjquines pushed a commit that referenced this issue Oct 13, 2020
cjquines added a commit that referenced this issue Oct 13, 2020
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