Ionic-framework: bug: TypeError [ERR_INVALID_ARG_TYPE]: Das "Pfad"-Argument muss vom Typ String sein. Undefiniert erhalten

Erstellt am 16. Feb. 2020  ·  10Kommentare  ·  Quelle: ionic-team/ionic-framework

Fehlerbericht

Ionische Version:


[x] 5.0.0

Aktuelles Verhalten:
Sobald ich eine neue Ionic React App erstelle bekomme ich folgendes: error.

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (internal/validators.js:118:11)
    at Object.join (path.js:1039:7)
    at noopServiceWorkerMiddleware (/home/yunier/soft-dev/billmeapp/node_modules/react-dev-utils/noopServiceWorkerMiddleware.js:14:26)
    at Layer.handle [as handle_request] (/home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/index.js:317:13)
    at /home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/index.js:335:12)
    at next (/home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/index.js:275:10)
    at launchEditorMiddleware (/home/yunier/soft-dev/billmeapp/node_modules/react-dev-utils/errorOverlayMiddleware.js:20:7)
    at Layer.handle [as handle_request] (/home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/index.js:317:13)
    at /home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/index.js:335:12)
    at next (/home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/index.js:275:10)
    at handleWebpackInternalMiddleware (/home/yunier/soft-dev/billmeapp/node_modules/react-dev-utils/evalSourceMapMiddleware.js:42:7)
    at Layer.handle [as handle_request] (/home/yunier/soft-dev/billmeapp/node_modules/express/lib/router/layer.js:95:5)

Erwartetes Verhalten:
Kann eine neue Ionic React-App erstellen.

Schritte zum Reproduzieren:
Erstellen Sie eine neue Ionic React-App.

Verwandter Code:
ionic start <appname> --type='react'

Andere Informationen:

Um es noch einmal zu überprüfen, erstellen Sie eine neue Ubuntu-VM und installieren Sie node.js ionic und führen Sie ionic start <appname> --type="react" aus und es wurde immer noch derselbe Fehler angezeigt. Wenn ich eckig benutze, habe ich kein Problem.

Ionische Informationen:

Ionic:

   Ionic CLI       : 6.1.0 (/usr/local/share/.config/yarn/global/node_modules/@ionic/cli)
   Ionic Framework : @ionic/react 5.0.0

Capacitor:

   Capacitor CLI   : 1.5.0
   @capacitor/core : 1.5.0

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v13.8.0 (/home/yunier/.nvm/versions/node/v13.8.0/bin/node)
   npm    : 6.13.6
   OS     : Linux 5.3
triage

Hilfreichster Kommentar

Hallo, das Upgrade des Pakets react-scripts von v3.3.0 auf v3.4.0 hat das Problem gelöst.

Mehr Infos hier:
https://github.com/facebook/create-react-app/issues/8490

Alle 10 Kommentare

Hallo, das Upgrade des Pakets react-scripts von v3.3.0 auf v3.4.0 hat das Problem gelöst.

Mehr Infos hier:
https://github.com/facebook/create-react-app/issues/8490

Danke für das Problem. Ich werde dies schließen, da dies ein Problem mit einer Starter-Abhängigkeit ist, nicht mit dem Framework. Ich werde versuchen, https://github.com/ionic-team/starters/pull/1137 zusammenzuführen.

Danke! arbeite jetzt.

Danke. Mein Projekt läuft wieder.

Wie kann ich einen Fehler beheben, wenn React-Scripts ausgeworfen wurden?

Als react-scripts ausgeworfen wurde:

Ich degradiere react-dev-utils auf 10.0.0 und arbeite für mich.

npm remove react-dev-utils && npm i [email protected]

https://www.gitmemory.com/issue/facebook/create-react-app/8499/588591098

Das Entfernen und Neuinstallieren react-dev-utils hat das Problem für mich behoben

Downgrade von „ react-dev-utils “ hat mein Problem gelöst.... Danke ...

npm remove react-dev-utils && npm i [email protected]

Ein Downgrade von React-Dev-Dienstprogrammen löst das Problem.

npm Lösche React-dev-utils && npm i [email protected]

Danke für das Problem! Dieses Problem wird gesperrt, um Kommentare zu verhindern, die für das ursprüngliche Problem nicht relevant sind. Wenn dies immer noch ein Problem mit der neuesten Version von Ionic ist, erstellen Sie bitte ein neues Problem und stellen Sie sicher, dass die Vorlage vollständig ausgefüllt ist.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen

Verwandte Themen

brandyscarney picture brandyscarney  ·  3Kommentare

giammaleoni picture giammaleoni  ·  3Kommentare

BilelKrichen picture BilelKrichen  ·  3Kommentare

vswarte picture vswarte  ·  3Kommentare

masimplo picture masimplo  ·  3Kommentare