Skip to content

[Bug]: TypeError: Module._malloc is not a function #5150

@colinaaa

Description

@colinaaa

System Info

Using @lynx-js/tasm 0.0.23 on Windows

Details

 FAIL   rspeedy/lynx-bundle-rslib-config  test/external-bundle.test.ts > should build external bundle > should only build main-thread code into external bundle
TypeError: Module._malloc is not a function
 ❯ decode_wasm ../../../node_modules/.pnpm/@[email protected]/node_modules/@lynx-js/tasm/index.js:133:31
 ❯ Module.decodeTemplate test/utils.ts:23:15
     21| 
     22|   // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
     23|   const ret = decodeFn(template)
       |               ^
     24| 
     25|   return ret as DecodeTemplateResult
 ❯ test/external-bundle.test.ts:104:27

Reproduce link

https://github.com/lynx-family/lynx-stack/actions/runs/21711887082/job/62618146707?pr=2176

Reproduce Steps

  1. pnpm turbo build
  2. pnpm test

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions