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

Warning on "this" in playground #274

Closed
himself65 opened this issue Dec 12, 2022 · 1 comment · Fixed by #275
Closed

Warning on "this" in playground #274

himself65 opened this issue Dec 12, 2022 · 1 comment · Fixed by #275
Labels
mod:infra Environment related issues and discussions

Comments

@himself65
Copy link
Contributor

> @blocksuite/playground@ dev /Users/himself65/Code/blocksuite/packages/playground
> vite

Signaling server running on localhost: 4444

  VITE v3.1.1  ready in 550 ms

  ➜  Local:   http://127.0.0.1:5173/
  ➜  Network: use --host to expose
7:43:12 PM [vite] warning: Top-level "this" will be replaced with undefined since this file is an ECMAScript module
70 |    const setTimer = () => {
71 |      if (lastArgs && trailing) {
72 |        fn.apply(this, lastArgs);
   |                 ^
73 |        lastArgs = null;
74 |        timer = setTimeout(setTimer, limit);

  Plugin: vite:esbuild
  File: /Users/himself65/Code/blocksuite/packages/blocks/src/__internal__/utils/std.ts
7:43:37 PM [vite] page reload src/main.ts
@doodlewind doodlewind added the mod:infra Environment related issues and discussions label Dec 12, 2022
@doodlewind
Copy link
Member

Guess @lawvs could take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod:infra Environment related issues and discussions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants