相关文章推荐
淡定的菠萝  ·  元对象机制·  4 月前    · 
淡定的菠萝  ·  Django: ...·  4 月前    · 
淡定的菠萝  ·  ICU4J Android 框架 ...·  8 月前    · 
淡定的菠萝  ·  Cocos2d-x: HttpClient ...·  8 月前    · 
淡定的菠萝  ·  python json去掉反斜杠 ...·  9 月前    · 
淡定的菠萝  ·  Laravel Email ...·  10 月前    · 
爱健身的跑步鞋  ·  机电产品进口管理办法·  33 分钟前    · 
飘逸的马克杯  ·  【GIT SourceTree】_<git ...·  33 分钟前    · 
博学的豌豆  ·  Team Foundation ...·  33 分钟前    · 

I went to create a new PCF project today, as a project has a requirement that I'd like to meet with a new component.

Receiving an error message when running pcf-scripts build .

 Executing task: npm run build <
> pcf-project@1.0.0 build C:\Users\NewcombR\source\repos\CSA\CSAPcf\PurchaseOrderAmountSummary
> pcf-scripts build
internal/modules/cjs/loader.js:905
  throw err;
Error: Cannot find module 'typescript'
Require stack:
- C:\Users\NewcombR\source\repos\CSA\CSAPcf\PurchaseOrderAmountSummary\node_modules\pcf-scripts\manifestTypesGenerator.js
- C:\Users\NewcombR\source\repos\CSA\CSAPcf\PurchaseOrderAmountSummary\node_modules\pcf-scripts\tasks\manifestTypesTask.js
- C:\Users\NewcombR\source\repos\CSA\CSAPcf\PurchaseOrderAmountSummary\node_modules\pcf-scripts\taskGroup.js
- C:\Users\NewcombR\source\repos\CSA\CSAPcf\PurchaseOrderAmountSummary\node_modules\pcf-scripts\bin\pcf-scripts.js     
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (C:\Users\NewcombR\source\repos\CSA\CSAPcf\PurchaseOrderAmountSummary\node_modules\pcf-scripts\manifestTypesGenerator.js:6:12)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Module.require (internal/modules/cjs/loader.js:974:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\NewcombR\\source\\repos\\CSA\\CSAPcf\\PurchaseOrderAmountSummary\\node_modules\\pcf-scripts\\manifestTypesGenerator.js',
    'C:\\Users\\NewcombR\\source\\repos\\CSA\\CSAPcf\\PurchaseOrderAmountSummary\\node_modules\\pcf-scripts\\tasks\\manifestTypesTask.js',
    'C:\\Users\\NewcombR\\source\\repos\\CSA\\CSAPcf\\PurchaseOrderAmountSummary\\node_modules\\pcf-scripts\\taskGroup.js',
    'C:\\Users\\NewcombR\\source\\repos\\CSA\\CSAPcf\\PurchaseOrderAmountSummary\\node_modules\\pcf-scripts\\bin\\pcf-scripts.js'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pcf-project@1.0.0 build: `pcf-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pcf-project@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\NewcombR\AppData\Roaming\npm-cache\_logs\2021-08-03T14_40_15_738Z-debug.log
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command npm run build" terminated with exit code: 1.

I created a second, PCF project and the results were the same.

I opened an existing PCF project and the build script worked as expected.

Is there I can "undo" the update that I installed this morning?  If not, what can I do to work through the issue?

I also noticed that there are the following messages that appear when running npm install on new PCF projects:

npm WARN ts-loader@8.3.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN ts-node@8.10.2 requires a peer of typescript@>=2.7 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.

I checked the package.json and it doesn't appear that typescript is included there.

I have typescript installed globally, BTW.

Sorry for the break. I probed about this and here is the summary. There was a change in pcf-scripts module to move the typescript module to the devDependencies section which reduces bundle size. If your local nodejs doesn’t have typescript 3 or 4 installed globally, you’ll either need to do:

  • npm install --save-dev typescript
  • or: npm install -g typescript
  • We’re updating the template in the July refresh

    thanks,

    Hemant

    we (the PCF/pac CLI tooling team) apologize for the breakage this caused: in the last 1.8.x release, we fixed a bug that typescript was mistakenly added as a runtime dependency: but TS is not a runtime dependency, e.g. TS should not get bundled etc.

    Having typescript installed globally (npm install -g typescript) would work on local dev machines, but likely not on build agents. That is the reason why this breakage went undetected locally within our team, sigh.

    But the idiomatic fix for npm/nodejs is to add typescript as a dev dependency in your package.json:

    npm install --save-dev typescript

    or if your project still needs TS 3

    npm install --save-dev typescript@^3

    The upcoming July refresh for PCF/pac CLI will contain updated package.json templates with TS already added as dev dependency

    we (the PCF/pac CLI tooling team) apologize for the breakage this caused: in the last 1.8.x release, we fixed a bug that typescript was mistakenly added as a runtime dependency: but TS is not a runtime dependency, e.g. TS should not get bundled etc.

    Having typescript installed globally (npm install -g typescript) would work on local dev machines, but likely not on build agents. That is the reason why this breakage went undetected locally within our team, sigh.

    But the idiomatic fix for npm/nodejs is to add typescript as a dev dependency in your package.json:

    npm install --save-dev typescript

    or if your project still needs TS 3

    npm install --save-dev typescript@^3

    The upcoming July refresh for PCF/pac CLI will contain updated package.json templates with TS already added as dev dependency

    Hi,

    I have the same issue. Unfortunately none of the suggestions in this thread work :disappointed_face:

    Error:

    webpack 5.75.0 compiled with 1 error in 410 ms
    [pcf-scripts] [Error] encountered unexpected error:
    Error: An error occurred compiling or bundling the control.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! pcf-project@1.0.0 build: `pcf-scripts build`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the pcf-project@1.0.0 build script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    This is quite frustrating. The information/ documentation is scarce and confusing.

    So, this is my cry for help: Please help anyone!!

    Thanks!

    Power Platform Connections Ep 17 | R. Rosengrün, June 29, 2023

    On Episode Seventeen of Power Platform Connections, David Warner and Hugo Bernier talk to their latest guest Robin Rosengrün and share the latest news and community blogs.   Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show. Show schedule in this episode: 00:00 Cold Open  00:33 Show Intro  01:15 Robin Rosengrün Interview  24:29 Blogs & Articles  37:56 Outro & Bloopers  Check out the blogs and articles featured in this week’s episode:   https://www.keithatherton.com/posts/2022-11-28-power-apps-ideas/ @MrKeithAtherton https://www.expiscornovus.com/2023/06/12/create-a-grouped-by-collapsed-view/ @Expiscornovus https://www.keithatherton.com/posts/2023-02-10-asking-chatgpt-about-power-platform/ @MrKeithAtherton https://svaghub.com/2023/06/15/dataverse-shortcut-in-microsoft-fabrics-lakehouse/ @GSiVed https://platformsofpower.net/json-and-parsejson-functions/ @platformspower https://never-stop-learning.de/automated-repository-setup/ @MMe2K https://reshmee.netlify.app/posts/powerplatform-convert-classic-pipeline-to-modern-pipeline/ @ReshmeeAuckloo https://platformsofpower.net/user-function-vs-office-365-users/ @platformspower https://never-stop-learning.de/using-azure-openai/ @MMe2K https://platformsofpower.net/convert-text-based-rgba-values-into-colour/ @platformspower https://d365goddess.com/smart-org-chart-preview/ @D365Goddess  Feel free to provide feedback on how we can make our community more inclusive and diverse.  This episode premiered live on our YouTube at 12pm PST on Thursday 29th June 2023.  Video series available at Power Platform Community YouTube channel.  Upcoming events:  European Power Platform conference – Jun. 20-22nd - Dublin  Microsoft Power Platform Conference – Oct. 3-5th - Las Vegas  Join our Communities:  Power Apps Community  Power Automate Community  Power Virtual Agents Community  Power Pages Community  If you’d like to hear from a specific community member in an upcoming recording and/or have specific questions for the Power Platform Connections team, please let us know. We will do our best to address all your requests or questions.

    Microsoft Inspire is Coming - July 18-19, 2023

    You do not want to miss Microsoft Inspire, coming July 18-19, 2023. This is a free online event where you can learn how to accelerate AI transformation, drive customer success, and fuel your business growth. Whether you've been part of the Power Platform community for a long time or are just getting started, this event is for you!Microsoft Inspire kicks off on Tuesday 18th July at 9am PST with an exciting Keynote from Microsoft Executive Vice President and COO Judson Althoff and Microsoft Chairman and CEO Satya Nadella. Other featured speakers include Nicole Denzen, Alysa Taylor, Nick Parker, Vasu Jakkal, Kelly Rogan, and more.Register today!  Find out more at the official Inspire site: Your home for Microsoft Inspire

    Complimentary Pass to the Power Platform Conference | October 3-5, 2023 | #CommunityGiveBack

    Interested in being selected to receive one complimentary pass to the upcoming Microsoft Power Platform Conference in Las Vegas, Nevada, October 3-5, 2023? Then why not enter a submission into our #CommunityGiveback competition for a chance to receive a complimentary pass for #MPPC23. All you need to do is click the link below to upload a video sharing with us: - How you got started with the Power Platform Community?- Why you would love to attend the Microsoft Power Platform Conference?- What was your favorite contribution to the community this year? All submissions are due by end of day on July 15th, 2023. If selected, you will be notified by a member of the #CommunitySuccess Team. https://aka.ms/MPPCGiveBack Please note: Passes are conference passes ONLY. No travel or expenses included. Passes are given at the discretion of the Community Success team. Participation in the Community Giveback giveaway is voluntary. Being selected for a pass does not imply any additional consideration or status with Microsoft or Microsoft Power Platform Conference. If selected for a pass and unable attend, there is no additional recompense.

    June 2023 Community Newsletter and Upcoming Events

    Welcome to our June 2023 Newsletter, where we'll be highlighting the latest news, releases, upcoming events, and the great work of our members inside the Biz Apps communities. If you're new to this LinkedIn group, be sure to subscribe to the News & Announcements to stay up to date with the latest Community news. LATEST NEWS Community Giveback Program - Submit entries by July 15th Interested in a free pass for the Microsoft Power Platform Conference in Las Vegas, Oct. 3-5, 2023? Click the link here to enter your video submission into the Community Giveback competition by July 15th 2023 for a chance to win a pass for #MPPC23. "Mondays at Microsoft" LIVE on LinkedIn - 8am PST - Grab your morning coffee and come join Principal Program Managers Heather Cook and Karuana Gatimu for the third episode of "Mondays at Microsoft". This show is hosted on the new Microsoft Community LinkedIn channel and covers a whole host of hot topics from across #ModernWork, #Dynamics365, #PowerPlatform, #AI, and everything in-between. S01E16 Power Platform Connections - 12pm PST - Thursday 15th June Episode Sixteen of #PowerPlatform Connections launches today at 12pm PST, with David Warner II and Hugo Bernier talking to #MicrosoftMVP Angeliki Patsiavou, alongside checking out the great work of Dian Taylor, Lindsay Shelton, Craig White, David Rivard, Nathalie Leenders, Reshmee Auckloo, and more.  Click the link below to subscribe and get notified, with David and Hugo LIVE in the YouTube chat from 12pm PST. And remember to use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show! You can now grab all the latest Power Platform swag over on the official Microsoft merchandise store! Power up your wardrobe with our new Power Platform merch! Head to the Microsoft Merchandise Store and grab a stylish tee, hoodie, or socks featuring the iconic Power Platform icons. Start shopping: https://msft.it/6047ggrQb  Tickets are flying out for the Microsoft Power Platform Conference, with the event this year being held on October 3-5th at the MGM Grand in Las Vegas!  Come and get inspired by Microsoft’s senior thought leaders, software engineers, and community experts, with guest speakers including Charles Lamanna, Heather Cook, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Julie Strauss, Nirav Shah, and many more. Click the link below to find out more and register today. See you in Vegas! www.powerplatformconf.com LATEST PRODUCT BLOG ARTICLES  Power Apps Community Blog  Power Automate Community Blog  Power Virtual Agents Community Blog  Power Pages Community Blog  Check out 'Using the Community' for more helpful tips and information:  Power Apps, Power Automate, Power Virtual Agents,  Power Pages

    Power Platform Connections Ep 16 | A. Patsiavou | 15 June 2023

    Episode Sixteen of Power Platform Connections sees David Warner and Hugo Bernier talk to Microsoft Business Applications MVP, Angeliki Patsiavou, alongside the latest news and community blogs.   Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show.  Show schedule in this episode: 00:00 Cold Open 00:25 Show Intro 01:02 Angeliki Patsiavou Interview 27:10 Blogs & Articles 42:45 Outro & Bloopers  Check out the blogs and articles featured in this week’s episode:   https://d365goddess.com/spice-up-your-case-forms-with-new-controls/ @D365Goddess https://lindsaytshelton.com/2023/05/24/how-to-block-downloads-with-stream-on-sharepoint/ @lshelton_Tech https://www.jondoesflow.com/post/application-lifecycle-management-for-the-power-platform-using-azure-devops @Jondoesflow https://platformsofpower.net/faster-way-to-add-comments-to-power-fx/ @platformspower https://itmustbecode.com/calling-pac-cli-modelbuilder-from-an-azure-devops-pipeline/ @David_rivard https://blog.nathalieleenders.com/glossary/ @NathLeenders https://platformsofpower.net/entity-relationship-diagrams/ @platformspower https://pnp.github.io/blog/post/instagrampostsintosharepoint/ @ReshmeeAuckloo https://platformsofpower.net/power-platform-environment-variables/ @platformspower https://community.dynamics.com/365/b/communityteam/posts/exciting-changes-coming-to-the-dynamics-365-community @hugobernier  Action requested: Feel free to provide feedback on how we can make our community more inclusive and diverse.  This episode premiered live on our YouTube at 12pm PST on Thursday 15th June 2023. Video series available at Power Platform Community YouTube channel.  Upcoming events:  European Power Platform conference – Jun. 20-22nd - Dublin Microsoft Power Platform Conference – Oct. 3-5th - Las Vegas  Join our communities:  Power Apps Community Power Automate Community Power Virtual Agents Community Power Pages Community  If you’d like to hear from a specific community member in an upcoming recording and/or have specific questions for the Power Platform Connections team, please let us know. We will do our best to address all your requests or questions.

    Welcome to the Power Apps Community

    Welcome! Congratulations on joining the Microsoft Power Apps community! You are now a part of a vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun! Now that you are a member, you can enjoy the following resources: The Microsoft Power Apps Community Forums If you are looking for support with any part of Microsoft Power Apps, our forums are the place to go. They are titled "Get Help with Microsoft Power Apps " and there you will find thousands of technical professionals with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Apps community forums! Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered! Microsoft Power Apps IdeasDo you have an idea to improve the Microsoft Power Apps experience, or a feature request for future product updates? Then the "Power Apps Ideas" section is where you can contribute your suggestions and vote for ideas posted by other community members. We constantly look to the most voted Ideas when planning updates, so your suggestions and votes will always make a difference. Community Blog & NewsOver the years, more than 600 Power Apps Community Blog Articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on building Power Apps. On the Power Apps Community Blog, read the latest Power Apps related posts from our community blog authors around the world. Let us know if you would like to become an author and contribute your own writing — everything Power Apps related is welcome! Power Apps Samples, Learning and Videos GalleriesOur galleries have a little bit of everything to do with Power Apps. Our galleries are great for finding inspiration for your next app or component. You can view, comment and kudo the apps and component gallery to see what others have created! Or share Power Apps that you have created with other Power Apps enthusiasts. Along with all of that awesome content, there is the Power Apps Community Video & MBAS gallery where you can watch tutorials and demos by Microsoft staff, partners, and community gurus in our community video gallery. Again, we are excited to welcome you to the Microsoft Power Apps community family! Whether you are brand new to the world of process automation or you are a seasoned Power Apps veteran. Our goal is to shape the community to be your ‘go to’ for support, networking, education, inspiration and encouragement as we enjoy this adventure together! Let us know in the Community Feedback if you have any questions or comments about your community experience.To learn more about the community and your account be sure to visit our Community Support Area boards to learn more! We look forward to seeing you in the Power Apps Community!The Power Apps Team

    We are exposing header to community/ideas via header endpoint which are on different UI frameworks -->
     
    推荐文章