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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / npm run start watch uu...
Power Apps
Unanswered

npm run start watch uuid/v4

(1) ShareShare
ReportReport
Posted on by 21

Hi 

Today I'm programming on an other computer. I don't know what's the different to my old computer.

 

If I run

npm run start watch

 

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './v4' is not defined by "exports" in ...\node_modules\uuid\package.json.

 

In the files

...\node_modules\pcf-start\generated\localfileusersettings.js

...\node_modules\pcf-start\generated\telemetry.js

I replace

 var uuidv4 = require('uuid/v4');

with

try {
    var uuidv4 = require('uuid/v4');
catch (error) {
    var { v4uuidv4 } = require('uuid');
}
 
and it worked again.
 
May be someone have a idea what I have installed wrong.
txs Flori
I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @FlorianGrimm , 

     

    In the uuid npm package, it seems that deep requires are deprecated with version 7 (https://www.npmjs.com/package/uuid#deep-requires-no-longer-supported)

     

    But the PCF seems to use uuid version "^3.3.2" (if I see this right in the "node_modules/pcf-scripts/package.json") , which means that it might install until uuid v3.4.0. In th v3.* where the deep requires were supported: https://www.npmjs.com/package/uuid/v/3.3.2

     

    It seems to me that it's using the latest version of uuid, but I'm not sure why. If you say, it's only on another computer, I would think on global install of uuid with a newer version, but I have no idea why the local install is not taken.

     

    Maybe you can use "npm list" and check which version of uuid is used.

     

    Hope it helps!

    Kind regards,

    Diana

     

  • FlorianGrimm Profile Picture
    21 on at

    Hi

     

    it seems jest does this to me...

    +-- jest@26.6.3
    | +-- @jest/core@26.6.3
    | | +-- @jest/console@26.6.2
    | | +-- @jest/reporters@26.6.2
    | | | +-- node-notifier@8.0.0
    | | | | +-- uuid@8.3.1
    | | +-- jest-config@26.6.3
    | | | +-- jest-environment-jsdom@26.6.2
    | | | | +-- jest-util@26.6.2 deduped
    | | | | `-- jsdom@16.4.0
    | | | | +-- request@2.88.2
    | | | | | `-- uuid@3.4.0
    | +-- awesome-typescript-loader@5.2.1
    | | +-- chalk@2.4.2
    | | `-- webpack-log@1.2.0
    | | `-- uuid@3.4.0
    | +-- uuid@3.4.0
    +-- pcf-start@1.4.4
    | +-- live-server@1.2.1
    | | +-- http-auth@3.1.3
    | | | `-- uuid@3.4.0

    so I used 

    npm install uuid@^3.3.2 --save-dev

    the mysteries of node_modules .. I will (want) never understand

     

    txs for the hint

  • mpnandini Profile Picture
    2 on at

    Hi,

     

    I am getting the same error while running the command 'npm start'

    Package subpath './v4' is not defined by "exports" in ..\node_modules\pcf-start\node_modules\uuid\package.json

     

    Node.js version - node-v14.17.1-x64

     

    Any suggestion please to resolve this issue?

     

    Thanks

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @mpnandini , 

    These days there seems to be another issue with the pac cli 1.7.2. which  brings the error.

    There is another thread on this one, maybe it helps: https://powerusers.microsoft.com/t5/Power-Apps-Pro-Dev-ISV/PCF-npm-run-build-Error-self-signed-certificate-in-certificate/m-p/957838#M4554

     

    Kind regards,

    Diana

  • David Jenni Profile Picture
    Microsoft Employee on at

    @floriangrimm yes, a regression has snuck in with our latest release 1.7.2, we're sorry for the inconvenience 😞

     

    As you mentioned, pinning to an older version in your package.json will for now let you work around.

    We're working on releasing a hot fix to update the localfilesetting.ts file to properly require the v4 submodule

     

    CC: @DianaBirkelbach @mpnandini @HemantG 

  • ScottDurow Profile Picture
    1,039 on at

    It seems that pcf-start 1.7.3 has now been released and fixes this issue 🥳

    You need to use npm install pcf-start@latest to install into your project.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 510

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 281

Last 30 days Overall leaderboard