Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Answered

msdyn365 clone does not rename module

(1) ShareShare
ReportReport
Posted on by 39
Hi all.
I am experiencing an issue with the command "yarn msdyn365 clone header super-header".
 
I'm using
windows 10 x64
node v16.20.2
yarn v 1.22.22
 
and this is the error
 
 
I tried searching but couldn't find anything particularly useful.
I tried also with --verbose option but the log is the same.
 
From the error, i can suppose that maybe there are permission problem but I have no evidence to confirm this
 
Has anyone experienced the same problem and if so, how did they solve it?
 
Thank you in advance
  • Verified answer
    NM-09101045-0 Profile Picture
    NM-09101045-0 39 on at
    msdyn365 clone does not rename module
    Hi all again. I found the cause of my issue.
     
    It was related to the VSCode extension "Angular Language Service". I stopped the execution, restarted the editor and the clone cmd works fine.
     
    To find the problem, I had to debug the cli js files, specifically the *\Msdyn365.Commerce.Online\node_modules\@msdyn365-commerce\cli-internal\distant\scripts\copy-module.js file and the renameCopiedModuleDirectories function.

    In the catch is the instruction utilities_internal_1.trace.error(`Error while renaming directory ${oldName}`, error); which does NOT correctly log the variable error.
     
    How can I report this bug (assuming it is one) to support (if it can be reported)?
     
    The moderator can consider this question closed

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,419 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,492 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans