ionic-team/ionicons
Voir sur GitHubUncaught TypeError: Failed to construct 'URL': Invalid base URL
Open
#1 032 ouverte le 22 déc. 2021
17 commentaires (17 commentaires)21 réactions (21 réactions)0 assignés (0 assignés)TypeScript17 256 stars (17 256 stars)2 083 forks (2 083 forks)batch import
help wanted
Description
Using Ionicons 6.0.0 with Ionic 6.0.1
Guide contributeur
- Stack technique
- javascripttypescriptweb components
- Domaine
- frontend
- Type d'issue
- bug
- DifficultéDifficulté estimée pour un nouveau contributeur, de 1 pour un très petit changement à 5 pour un travail expert.
- 3
- Temps estiméFourchette de temps approximative pour investiguer, implémenter, tester et préparer une pull request.
- 1-3 hours
- Statut d'activitéDisponibilité apparente de l'issue : fraîche, active, ancienne, bloquée ou en attente d'un mainteneur.
- stale
- ClartéClarté avec laquelle l'issue explique le changement attendu, les critères d'acceptation et la prochaine étape.
- mostly clear
- Prérequis
- Aucun
- Accessibilité débutantScore de 1 à 100 estimant l'accessibilité de cette issue pour un premier contributeur.
- 60
- Direction de recherche
- The error 'Failed to construct URL: Invalid base URL' occurs in the icon loading process, likely in the web component's logic. Search for 'new URL(' in the source code (e.g., `src/` or `dist/`) to find where the base is passed. Check if the base is derived from a potentially undefined or invalid source, such as `document.baseURI` or `location.href`. Consider adding a fallback or validation to prevent this error when the base is invalid.