microsoft / Msdyn365.Commerce.Online

Dynamics 365 Commerce online project
Other
50 stars 41 forks source link

Could not generate data definition for file #27

Closed VDinets closed 3 years ago

VDinets commented 3 years ago

When I try to clone module checkout-shipping-address, I get an error in the console: -- [2] Errors detected -- Could not generate data definition ICustomCheckoutShippingAddressData for file: src/modules/custom-checkout-shipping-address/custom-checkout-shipping-address.data.ts RangeError: Maximum call stack size exceeded -- Error in data-definition generator: RangeError: Maximum call stack size exceeded

I used "yarn msdyn365 clone checkout-shipping-address custom-checkout-shipping-address" command.

-- Using SDK version: 1.30.16 -- Using Module library version: 9.29.9 -- Using Retail proxy verson: 9.29.7

And when I try use on mock pages my custom clone module without any changes - I get this error:

Error: export not found

image

VDinets commented 3 years ago

Resolve by moving common & action and change imports

mkelan commented 3 years ago

@VDinets thanks for reporting and providing an update. glad you found a way to get past the issue.