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

Bug: throw an unexcepted TypeError: "x" is not a function #40

Closed
wibus-wee opened this issue Dec 4, 2022 · 2 comments
Closed

Bug: throw an unexcepted TypeError: "x" is not a function #40

wibus-wee opened this issue Dec 4, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@wibus-wee
Copy link
Collaborator

<body>
  <div class="a">
    <div class="a">
      <div class="a"></div>
    </div>
  </div>
  <script src="https://unpkg.com/@akrc/nashi@latest/dist/legacy.js"></script>
  <script>
    nashi('.a').each((el) => {
      el.style.backgroundColor = 'red';
    });
  </script>
</body>

in console, it will return legacy.js:4 Uncaught TypeError: t is not a function

@wibus-wee wibus-wee added the bug Something isn't working label Dec 4, 2022
@wibus-wee wibus-wee closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2022
@wibus-wee wibus-wee added invalid This doesn't seem right bug Something isn't working and removed bug Something isn't working invalid This doesn't seem right labels Dec 4, 2022
@wibus-wee wibus-wee reopened this Dec 4, 2022
@wibus-wee
Copy link
Collaborator Author

wibus-wee commented Dec 4, 2022

文档是不是没更新 type (

https://nashi.js.org/type.html

我怎么愣是看不到each,我还以为是我错了,但是发觉 ts 没报错不应该啊

@AkaraChen
Copy link
Owner

文档是不是没更新 type (

nashi.js.org/type.html

我怎么愣是看不到each,我还以为是我错了,但是发觉 ts 没报错不应该啊

因为是手写 type。。疏忽了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants