Cant build blank projects anymore

Hello,

regardless if i try cordova or capacitor blank projects, the angular-build always fails. I had this issue once on a windows machine, now i got it on a mac.

$ ionic cordova run android

ng run app:ionic-cordova-build --platform=android
:heavy_check_mark: Browser application bundle generation complete.

…/…/…/…/#workspace/#Apps/planzeit-App/myApp/node_modules/@angular-devkit/build-angular/src/webpack/jit-polyfills.js - Error: Module build failed (from …/…/…/…/#workspace/#Apps/planzeit-App/myApp/node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: Cannot find module ‘/Users/louisspieckerhoff/Desktop/Desktop/#workspace/#Apps/planzeit-App/myApp/node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js’
Require stack:…

…/…/…/…/#workspace/#Apps/planzeit-App/myApp/src/main.ts - Error: Module build failed: Error: Cannot find module ‘/Users/louisspieckerhoff/Desktop/Desktop/#workspace/#Apps/planzeit-App/myApp/node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js’
Require stack:…

…/…/…/…/#workspace/#Apps/planzeit-App/myApp/src/polyfills.ts - Error: Module build failed: Error: Cannot find module ‘/Users/louisspieckerhoff/Desktop/Desktop/#workspace/#Apps/planzeit-App/myApp/node_modules/@ngtools/webpack/src/ivy/index.js’
Require stack:…

…/…/…/…/#workspace/#Apps/planzeit-App/myApp/src/global.scss - Error: Module build failed: Error: Cannot find module ‘/Users/louisspieckerhoff/Desktop/Desktop/#workspace/#Apps/planzeit-App/myApp/node_modules/mini-css-extract-plugin/dist/loader.js’
Require stack:…

…/…/…/…/#workspace/#Apps/planzeit-App/myApp/src/theme/variables.scss - Error: Module build failed: Error: Cannot find module ‘/Users/louisspieckerhoff/Desktop/Desktop/#workspace/#Apps/planzeit-App/myApp/node_modules/css-loader/dist/cjs.js’
Require stack:…

[ERROR] An error occurred while running subprocess ng.

    ng run app:ionic-cordova-build --platform=android exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more information.

This is my ionic info:

Ionic:

Ionic CLI : 6.17.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.6.14
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics : 12.1.4
@angular/cli : 12.1.4
@ionic/angular-toolkit : 4.0.0

Cordova:

Cordova CLI : 10.0.0
Cordova Platforms : not available
Cordova Plugins : not available

Utility:

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

System:

ios-deploy : 1.10.0
ios-sim : 8.0.2
NodeJS : v14.17.5 (/usr/local/bin/node)
npm : 6.14.14
OS : macOS Big Sur
Xcode : Xcode 12.5.1 Build version 12E507

I tried everything - even uninstalling node, npm and angular-cli… i really have no clue on how to solve it :frowning:

Just for fun, can you try doing all this in a section of the filesystem that doesn’t have any strange characters in the full path (those '#'s are concerning me).

1 Like

You are my saviour! Those ‘#’ are BAD for Angular… Thanks!!!