You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Cannot perform Ionic build for project type: ${chalk.bold(project.type)}.\n`+
49
+
(project.type==='custom' ? `Since you're using the ${chalk.bold('custom')} project type, this command won't work. The Ionic CLI doesn't know how to build custom projects.\n\n` : '')+
50
+
`If you'd like the CLI to try to detect your project type, you can unset the ${chalk.bold('type')} attribute in ${chalk.bold(PROJECT_FILE)}.`
@@ -82,7 +83,7 @@ export async function serve(env: IonicEnvironment, inputs: CommandLineInputs, op
82
83
thrownewFatalException(
83
84
`Cannot perform Ionic serve for project type: ${chalk.bold(project.type)}.\n`+
84
85
(project.type==='custom' ? `Since you're using the ${chalk.bold('custom')} project type, this command won't work. The Ionic CLI doesn't know how to serve custom projects.\n\n` : '')+
85
-
`If you'd like the CLI to try to detect your project type, you can unset the ${chalk.bold('type')} attribute in ${chalk.bold('ionic.config.json')}.\n`
86
+
`If you'd like the CLI to try to detect your project type, you can unset the ${chalk.bold('type')} attribute in ${chalk.bold(PROJECT_FILE)}.`
`Could not determine project type (project config: ${chalk.bold(prettyPath(this.filePath))}).\n`+
155
-
`For ${this.formatType('ionic-angular')} projects, make sure ${chalk.green('ionic-angular')} is listed as a dependency in ${chalk.bold('package.json')}.\n`+
156
-
`For ${this.formatType('ionic1')} projects, make sure ${chalk.green('ionic')} is listed as a dependency in ${chalk.bold('bower.json')}.\n\n`+
157
-
`Alternatively, set ${chalk.bold('type')} attribute in ${chalk.bold('ionic.config.json')} to one of: ${PROJECT_TYPES.map(v=>chalk.green(v)).join(', ')}.\n\n`+
173
+
`- ${wordWrap(`For ${this.formatType('ionic-core-angular')} projects (Ionic Angular v4+, with ${chalk.bold('@angular/cli')}), make sure ${chalk.green('@ionic/angular')} is listed as a dependency in ${chalk.bold('package.json')}.`,listWrapOptions)}\n\n`+
174
+
`- ${wordWrap(`For ${this.formatType('ionic-angular')} projects (Ionic Angular v2-v3, with ${chalk.bold('ionic-app-scripts')}), make sure ${chalk.green('ionic-angular')} is listed as a dependency in ${chalk.bold('package.json')}.`,listWrapOptions)}\n\n`+
175
+
`- ${wordWrap(`For ${this.formatType('ionic1')} projects, make sure ${chalk.green('ionic')} is listed as a dependency in ${chalk.bold('bower.json')}.`,listWrapOptions)}\n\n`+
176
+
`Alternatively, set ${chalk.bold('type')} attribute in ${chalk.bold(PROJECT_FILE)} to one of: ${PROJECT_TYPES.map(v=>chalk.green(v)).join(', ')}.\n\n`+
158
177
`If the Ionic CLI does not know what type of project this is, ${chalk.green('ionic build')}, ${chalk.green('ionic serve')}, and other commands may not work. You can use the ${chalk.green('custom')} project type if that's okay.\n`
0 commit comments