Closed huypham50 closed 1 day ago
The error message around async/await is pretty descriptive: using an await
statement on the top level is something that is not supported across all browsers, and your project is apparently configured to try and support browsers where top-level await isn't supported.
This is from the code in the example, which isn't part of the module proper. You can avoid the top-level await by using old-school .then()
syntax on the createDefaultMapFromCDN
call instead of awaiting it.
Closing - these warnings are in application code rather than the module.
Getting these warnings while
yarn build
Next.js applicationtypescriptExtensions.ts
is basically this demo on StackblitzCode editor still works, but I haven't been able to root cause these issues, have anyone seen anything similar?