Hi @GiovanniVanore1 that error looks like it has something to do with your Angular configuration. I tried your code in our Angular ESM sample and it worked: https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.