• Kachmar Sofiya
  • NEWBIE
  • 0 Points
  • Member since 2016
  • Senior Force.com Developer
  • Finally sp. z o. o.

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
In order to load an external script into LWC loadScript should be used: https://developer.salesforce.com/docs/component-library/bundle/lightning-platform-resource-loader/documentation

Iøm facing the problem as I need to set data attributes on the script tag for the script to be loaded correctly. Any suggestions?
In order to load an external script into LWC loadScript should be used: https://developer.salesforce.com/docs/component-library/bundle/lightning-platform-resource-loader/documentation

Iøm facing the problem as I need to set data attributes on the script tag for the script to be loaded correctly. Any suggestions?
I'm using an admin account and using an org setup as "Dev Hub".  

When creating the scratch org:

sfdx force:org:create -f project-scratch-def.json -a AbcScratchOrg

I receive this error message: 

ERROR running force:org:create:  We couldn't create this sandbox or scratch org because the associated Dev Hub isn't authorized. Authorize the Dev Hub and try again.

I've ensured the org is indeed configured as Dev Hub and that the admin user in visual studio code is set:

Sfdx force:config:set defaultdevhubusername=<devhubusername> --global

User-added image

Any ideas/help on what might be the issue would be much appreciated.