ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.01k stars 13.51k forks source link

bug: Ionic Framework not installed #27385

Closed chacabuk closed 1 year ago

chacabuk commented 1 year ago

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

[WARN] Error loading @ionic/angular package.json: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package' is not defined by "exports" in C:\Sistemas\7-QRBus\appDistribuidor\node_modules\@ionic\angular\package.json

Expected Behavior

Build without error

Steps to Reproduce

  1. npm i @ionic/angular
  2. ionic info

Code Reproduction URL

No response

Ionic Info

[WARN] Error loading @ionic/angular package.json: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package' is not defined by "exports" in C:\Sistemas\7-QRBus\appDistribuidor\node_modules\@ionic\angular\package.json

Ionic:

Ionic CLI : 6.20.8 (C:\Users\Pablo\AppData\Roaming\npm\node_modules\@ionic\cli) Ionic Framework : not installed <--- HERE !! @angular-devkit/build-angular : 15.2.7 @angular-devkit/schematics : 15.2.7 @angular/cli : 15.2.7 @ionic/angular-toolkit : 9.0.0

Additional Information

To solve this issue i must to remove from \node_modules\@ionic\angular\package.json this section

"exports": {
    "./css/*": {
      "style": "./css/*"
    },
    "./package.json": {
      "default": "./package.json"
    },
    ".": {
      "types": "./index.d.ts",
      "esm2020": "./esm2020/ionic-angular.mjs",
      "es2020": "./fesm2020/ionic-angular.mjs",
      "es2015": "./fesm2015/ionic-angular.mjs",
      "node": "./fesm2015/ionic-angular.mjs",
      "default": "./fesm2020/ionic-angular.mjs"
    }
  },
ionitron-bot[bot] commented 1 year ago

Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.

Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.

For a guide on how to create a good reproduction, see our Contributing Guide.

averyjohnston commented 1 year ago

This issue is being closed due to lack of a reproduction. If this is still a problem in the latest version of Ionic, please open a new issue and ensure the template is fully filled out. Thank you!