xcatliu / pagic

A static site generator powered by Deno + React
https://pagic.org
MIT License
1.65k stars 103 forks source link

pagic build报错 Uncaught TypeError: ext[key].bind is not a function #109

Closed sjxhgjxf closed 1 year ago

sjxhgjxf commented 1 year ago

Describe the bug

image

Context

lichangyuan1993 commented 1 year ago

Describe the bug image

Context

  • Pagic version: latest(1.5.1)
  • Deno version: 1.28.1

I have the same problem.

deno 1.28.3 (release, x86_64-pc-windows-msvc) v8 10.9.194.5 typescript 4.8.3

I just wanted to write a simple React single-page application in Pagic

lichangyuan1993 commented 1 year ago

我也遇到了这个问题

./deno-pagic/
├── pagic.config.ts
└── README.md

0 directories, 2 files
D:\deno-workspaces\deno-pagic>pagic build --watch --serve
This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills
This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills
error: Uncaught TypeError: ext[key].bind is not a function
    DomUtils[key] = ext[key].bind(DomUtils);
                             ^
    at https://dev.jspm.io/npm:domutils@1.7.0!cjs:320:30
    at Array.forEach (<anonymous>)
    at https://dev.jspm.io/npm:domutils@1.7.0!cjs:319:20
    at Array.forEach (<anonymous>)
    at https://dev.jspm.io/npm:domutils@1.7.0!cjs:318:67
gltjk commented 1 year ago

我把 Pagic 的代码下到了本地安装,把 deps.ts 里所有的 https://dev.jspm.io/ 改成了 npm:,搞定了。

I fixed this problem by installing from a local code base of Pagic and replacing all https://dev.jspm.io/ with npm: in deps.ts.

zhper commented 1 year ago

这个问题有具体的解决方案了吗? Is there a specific solution for this problem?

zhper commented 1 year ago

我把 Pagic 的代码下到了本地安装,把 deps.ts 里所有的 https://dev.jspm.io/ 改成了 npm:,搞定了。

I fixed this problem by installing from a local code base of Pagic and replacing all https://dev.jspm.io/ with npm: in deps.ts.

你好,请问您下到本地后,后续怎么操作呢?

xcatliu commented 1 year ago

@zhper 已修复此问题,请安装最新版即可

deno install --unstable --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic --force https://deno.land/x/pagic@v1.6.2/mod.ts
xuya227939 commented 1 year ago

@xcatliu 兄弟,没搞定阿,

xuya227939 commented 1 year ago

deno v1.31.1

This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills
This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills
error: Uncaught TypeError: ext[key].bind is not a function

@xcatliu