ionicthemes / ionic-wordpress-integration

Ionic Wordpress starter app 😎. Learn how to communicate your ionic app with Wordpress REST API with this starter and detailed tutorial.
https://ionicthemes.com/tutorials/about/ionic-wordpress-integration
265 stars 126 forks source link

Error("The Angular Compiler requires TypeScript >=" + minVersion + " and <" + maxVersion + " but " + maxVersion + " was found instead."); #24

Closed linohra closed 3 years ago

linohra commented 3 years ago

Hi. I need your help, when type ionic serve the server say /home/xxxr/Documentos/Proyectos/yyy/node_modules/@angular/compiler-cli/src/typescript_support.js:65 [ng] throw new Error("The Angular Compiler requires TypeScript >=" + minVersion + " and <" + maxVersion + " but " + version + " was found instead."); ^ Error: The Angular Compiler requires TypeScript >=4.2.3 and <4.3.0 but 4.1.5 was found instead.

Thanks. P.D. My english is very bad

djabif commented 3 years ago

Try removing the node_modules folder and package-lock.json file and then run npm install. Please let me know if this works.

linohra commented 3 years ago

Gracias Dayana. Mañana hago la prueba te mantengo informada. Disculpas las molestias Gracias reiteradas

El lunes, 31 de mayo de 2021, Dayana Jabif @.***> escribió:

Try removing the node_modules folder and package-lock.json file and then run npm install. Please let me know if this works.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ionicthemes/ionic-wordpress-integration/issues/24#issuecomment-851458905, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBJTDDWZIGXCOIHKDCIIP3TQN6SJANCNFSM45XDOLHQ .

-- Mgtr. Lino H. Rodríguez Acosta

linohra commented 3 years ago

Hola Dayana. Borré la carpeta y el fichero que me dijiste y me sigue dando error, esta vez es el siguiente: ng run app:serve --host=localhost --port=8100 [ng] An unhandled exception occurred: Cannot find module @./compiler-cli' [ng] Require stack: [ng] - @./webpack/src/ivy/plugin.js [ng] - @./webpack/src/ivy/index.js [ng] - @./webpack/src/index.js [ng] - @./build-angular/src/webpack/configs/typescript.js [ng] - @./build-angular/src/webpack/configs/index.js [ng] - @./build-angular/src/browser/index.js [ng] - @./build-angular/src/dev-server/index.js [ng] - @.**@./architect/node/node-modules-architect-host.js [ng] - @.**@./architect/node/index.js [ng] - @./cli/models/architect-command.js [ng] - @./cli/commands/run-impl.js [ng] - @.**@./schematics/tools/export-ref.js [ng] - @.**@./schematics/tools/index.js [ng] - @./cli/utilities/json-schema.js [ng] - @./cli/models/command-runner.js [ng] - @./cli/lib/cli/index.js [ng] - @./cli/lib/init.js [ng] - @.***/cli/bin/ng [ng] See "/tmp/ng-8kmmjV/angular-errors.log" for further details.

[ERROR] ng has unexpectedly closed (exit code 127).

    The Ionic CLI will exit. Please check any output above for error
    details.

Al parecer en la carpeta borrado hay ficheros que se necesitan. Perdona las molestias Una vez más gracias

El lun, 31 may 2021 a las 10:40, Lino H. Rodríguez Acosta (< @.***>) escribió:

Gracias Dayana. Mañana hago la prueba te mantengo informada. Disculpas las molestias Gracias reiteradas

El lunes, 31 de mayo de 2021, Dayana Jabif @.***> escribió:

Try removing the node_modules folder and package-lock.json file and then run npm install. Please let me know if this works.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ionicthemes/ionic-wordpress-integration/issues/24#issuecomment-851458905, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBJTDDWZIGXCOIHKDCIIP3TQN6SJANCNFSM45XDOLHQ .

-- Mgtr. Lino H. Rodríguez Acosta

-- Mgtr. Lino H. Rodríguez Acosta

djabif commented 3 years ago

Pero has vuelto a ejecutar npm install?