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
thrownewError(`Import '${jsImpt.n}' is not defined by the WIT world. Make sure to use a bundler for JS dependencies such as esbuild or RollupJS. Future ComponentizeJS versions may include Node.js builtins and bundling.`);
151
+
if(!importSpecifiers.has(jsImpt.n)){
152
+
thrownewError(
153
+
`Import '${
154
+
jsImpt.n
155
+
}' is not defined by the WIT world. Available imports are: ${[
156
+
...importSpecifiers,
157
+
]
158
+
.map((impt)=>`'${impt}'`)
159
+
.join(
160
+
', '
161
+
)}.\nMake sure to use a bundler for JS dependencies such as esbuild or RollupJS.`
strictEqual(error.message,"Import 'not:world-defined' is not defined by the WIT world. Make sure to use a bundler for JS dependencies such as esbuild or RollupJS. Future ComponentizeJS versions may include Node.js builtins and bundling.");
4
+
strictEqual(error.message,"Import 'not:world-defined' is not defined by the WIT world. Available imports are: 'local:char/chars'.\nMake sure to use a bundler for JS dependencies such as esbuild or RollupJS.");
0 commit comments