web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Cloning adventureworks theme giving error

(0) ShareShare
ReportReport
Posted on by 22

Hello,

I was trying to clone adventureworks theme by following the document in    .

Whenever i am running yarn start i am getting the following errors:

Unable to find parent definition file for file /home/sm00807325/Desktop/dynamic/newdynamic/Msdyn365.Commerce.Online/src/themes/adventureworks/definition-extensions/search-result-container-v2.definition.ext.json
-- Error: Unable to find parent definition file for file /home/sm00807325/Desktop/dynamic/newdynamic/Msdyn365.Commerce.Online/src/themes/adventureworks/definition-extensions/search-result-container-v2.definition.ext.json
at mergeExtendedDefinitionFile (/home/sm00807325/Desktop/dynamic/newdynamic/Msdyn365.Commerce.Online/node_modules/@msdyn365-commerce/definition-generator-internal/src/utils/helpers.js:135:15)
at ModuleDefinitionGenerator.isValidJsonFile (/home/sm00807325/Desktop/dynamic/newdynamic/Msdyn365.Commerce.Online/node_modules/@msdyn365-commerce/definition-generator-internal/src/module-definition-generator.js:153:31)
at ModuleDefinitionGenerator.start (/home/sm00807325/Desktop/dynamic/newdynamic/Msdyn365.Commerce.Online/node_modules/@msdyn365-commerce/definition-generator-internal/src/module-definition-generator.js:120:25)
at runDefinitionGenerator (/home/sm00807325/Desktop/dynamic/newdynamic/Msdyn365.Commerce.Online/node_modules/@msdyn365-commerce/definition-generator-internal/src/utils/helpers.js:55:46)
-- Error processing extended definition file /home/sm00807325/Desktop/dynamic/newdynamic/Msdyn365.Commerce.Online/src/themes/adventureworks/definition-extensions/search-result-container-v2.definition.ext.json.
-- Please check to make sure parent definition exists, the extended definition is the right type and does not override parent properties.
error Command failed with exit code 1.
info Visit yarnpkg.com/.../run for documentation about this command.
error Command failed with exit code 1.

Please suggest what may be wrong . I cloned same theme previously but in new setup giving this error

Thanks

I have the same question (0)
  • MuraliElangovan Profile Picture
    on at
    RE: Cloning adventureworks theme giving error

    Hi Somdeb Mukjerjee 

    Apologies for the delay in response. I was able to repro the problem. To mitigate/workaround the issue, please delete the following files from your theme directory

    definition-extensions\search-result-container-v2.definition.ext.json

    definition-extensions\search-result-container-v2.ext.props.autogenerated.ts

    views\search-result-container-v2.view.tsx

    That should mitigate the issue.

    It seems we shipped customization for a module that hasnt been released yet. we will look to release a patch and clean that up. Meanwhile, i hope the above suggested mitigation unblocks you. 

  • Somdeb Mukjerjee Profile Picture
    22 on at
    RE: Cloning adventureworks theme giving error

    Its only giving error when i clone the adventureworks theme

  • MuraliElangovan Profile Picture
    on at
    RE: Cloning adventureworks theme giving error

    At build time, its trying to resolve the references and it seems some referene from search-result-container-v2.definition.ext.json is not getting resolved. can you please review and confirm if the base definition file referred is present inside node_modules?

  • Somdeb Mukjerjee Profile Picture
    22 on at
    RE: Cloning adventureworks theme giving error

    Yes that is already react 16.9.0.

    I am getting error when running yarn start after copying all the files from nodemodules/adventureworks to src/theme folder

    Thanks

  • ToddB Profile Picture
    on at
    RE: Cloning adventureworks theme giving error

    Hi Somdeb,

    Can you please let me know at what step you are getting an error?

    Did you see the below about a previous issue from that same thread?

    pastedimage1667846715321v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 987

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 261 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 176 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans