You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In today's retro, we were playing around with the bindings for dynamite-bud/hello_world (note the _) and ran into an error with the generated bindings.
$ node ./index.mjsnode:internal/modules/cjs/loader:995 const err = new Error(message); ^Error: Cannot find module './hello_world/hello_world.js'Require stack:- /tmp/node_modules/@dynamite-bud/hello_world/src/bindings/index.js- /tmp/node_modules/@dynamite-bud/hello_world/src/index.js at Module._resolveFilename (node:internal/modules/cjs/loader:995:15) at Module._load (node:internal/modules/cjs/loader:841:27) at Module.require (node:internal/modules/cjs/loader:1061:19) at require (node:internal/modules/cjs/helpers:103:18) at Object.<anonymous> (/tmp/node_modules/@dynamite-bud/hello_world/src/bindings/index.js:2:37) at Module._compile (node:internal/modules/cjs/loader:1159:14) at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) at Module.load (node:internal/modules/cjs/loader:1037:32) at Module._load (node:internal/modules/cjs/loader:878:12) at Module.require (node:internal/modules/cjs/loader:1061:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/tmp/node_modules/@dynamite-bud/hello_world/src/bindings/index.js', '/tmp/node_modules/@dynamite-bud/hello_world/src/index.js' ]}Node.js v19.0.0
If you look at the generated src/bindings/index.js, we see that it assumes the file generated by wai-bindgen is called hello_world.js (same as the package name) instead of hello-world.js.
In today's retro, we were playing around with the bindings for
dynamite-bud/hello_world
(note the_
) and ran into an error with the generated bindings.The JavaScript code:
The error:
The generated files:
If you look at the generated
src/bindings/index.js
, we see that it assumes the file generated bywai-bindgen
is calledhello_world.js
(same as the package name) instead ofhello-world.js
.The text was updated successfully, but these errors were encountered: