Skip to content

在客户端使用,报错 Uncaught TypeError: Class extends value undefined is not a constructor or null #148

@LiMao00

Description

@LiMao00

Bug 预期

vite 项目下报错,是否不支持客户端、浏览器端使用

最小可重复的例子

import { createCrawl } from 'x-crawl';
const crawlApp = createCrawl({
  // 选项
});

报错信息

Uncaught TypeError: Class extends value undefined is not a constructor or null

x-crawl 版本

"x-crawl": "^10.0.2",

Node 版本

v18.18.0

包管理器

pnpm

包管理器版本

8.15.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions