TeamMaestro / angular-native-seed

Build web apps and NativeScript applications from one codebase using the AngularCLI.
265 stars 71 forks source link

No app.module.ts #53

Closed Sharique-Hasan closed 7 years ago

Sharique-Hasan commented 7 years ago

there is no app.module.ts in this directory https://github.com/TeamMaestro/angular-native-seed/tree/master/nativescript/src and this file is referred in main.ts.

Should I import the web's app.module.ts?

sean-perkins commented 7 years ago

The post install script creates a symlink between the src/app directory and nativescript/app. The main.ts file references ./app/app.module, which will exist after you run npm install from the root project directory.

Sharique-Hasan commented 7 years ago

I am on windows. After npm install, postinstall runs but it exits by consoling "Configuring...". Nothing else

Sharique-Hasan commented 7 years ago

@sean-perkins Code doesn't enter in the if-check down below in the symlink.js file


// Root SymLink Code for Windows
if (process.argv.length > 2) {
    if (process.argv[2] === 'symlink') {
        createRootSymLink();
        console.log("Created Symlink");
    }
    return 0;
}
sean-perkins commented 7 years ago

@Sharique-Hasan Can you try running the script using the admin command prompt? We all use Macs in our office, so testing on a Windows machine will be difficult.

The symlink script comes almost directly from Nathan Walker's implementation on the old seed: https://github.com/NathanWalker/angular-seed-advanced/blob/master/tools/install.js

I know users were able to successfully install his seed, so I am not completely sure on what's different between the implementations.