Skip to content

Error when starting a react project without doing any changes! #1713

@tndejong

Description

@tndejong

Describe the bug

pm ERR! code ERR_INVALID_PROTOCOL
npm ERR! Protocol "https:" not supported. Expected "http:"

npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2025-01-28T09_33_21_750Z-debug-0.log
npm ERR! code ERR_INVALID_PROTOCOL
npm ERR! Protocol "https:" not supported. Expected "http:"

npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2025-01-28T09_33_21_749Z-debug-0.log

ERROR callSite.getFileName is not a function. (In 'callSite.getFileName()', 'callSite.getFileName' is undefined)

┃ depd@
┃ ../../node_modules/body-parser/index.js@
┃ __require@
┃ ../../node_modules/express/lib/express.js@
┃ __require@
┃ ../../node_modules/express/index.js@
┃ __require@
┃ @
┃ _0x59ce1a@https://nativescriptstackblitztemplate-sa2z.w-corp-staticblitz.com/blitz.1b4252dd.js:40:800333
┃ @https://nativescriptstackblitztemplate-sa2z.w-corp-staticblitz.com/builtins.ddb8d84d.js:144:14247
┃ @https://nativescriptstackblitztemplate-sa2z.w-corp-staticblitz.com/builtins.ddb8d84d.js:144:14863
┃ @https://nativescriptstackblitztemplate-sa2z.w-corp-staticblitz.com/builtins.ddb8d84d.js:144:12820
┃ @https://nativescriptstackblitztemplate-sa2z.w-corp-staticblitz.com/builtins.ddb8d84d.js:144:10277
┃ executeUserEntryPoint@https://nativescriptstackblitztemplate-sa2z.w-corp-staticblitz.com/builtins.ddb8d84d.js:165:1646
┃ internal/main/run_main_module@https://nativescriptstackblitztemplate-sa2z.w-corp-staticblitz.com/builtins.ddb8d84d.js:138:405
┃ _0x401b2f@https://nativescriptstackblitztemplate-sa2z.w-corp-staticblitz.com/blitz.1b4252dd.js:40:1434866
┃ @https://nativescriptstackblitztemplate-sa2z.w-corp-staticblitz.com/blitz.1b4252dd.js:40:897539
┃ @https://nativescriptstackblitztemplate-sa2z.w-corp-staticblitz.com/blitz.1b4252dd.js:40:1465124
┗━

Link to the blitz that caused the error

https://stackblitz.com/edit/nativescript-stackblitz-templates-tyztfkqj?file=package.json&title=NativeScript%20Starter%20React

Steps to reproduce

  1. Create a stackblitz account
  2. Start a react project
  3. Wait until the build is done and see the error in the terminal appear

Expected behavior

I would expect I would get a react app that works instant without run fixing bugs :)

Screenshots

Image
Image

Platform

Browser name  = Safari
Full version  = 18.1.1
Major version = 18
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Safari/605.1.15
performance.memory = undefined
Hash = 1b4252dd

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions