Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49229

How do you rename files without a billion errors?

$
0
0

@JensOlleOlsson wrote:

Hi,

What if I created a new page in my application, but I spelled the word for the page wrong.
For example if I write in the CLI:

ionic g pages/tbaPage

but what I wanted was:

ionic g pages/tabPage

Now, if I go ahead and rename the files manually, I will get the following error:

[ng] ERROR in ./src/app/pages/tabPage.page.ts
[ng] Module not found: Error: Can't resolve './tabPage.page.scss' in 'C:\Dev\myApplication\src\app\pages'

AND, I also get an error in my tabPage.page.spec.ts, where I get an error on the import, like this:

import { TabPagePage } from './tabPage.page';

Error:
[ts] Module '"c:/Dev/myApplication/src/app/pages/tabPage.page"' has no exported member 'TabPagePage'. [2305]

This can impossibly never had happen to anyone but me, yet NO valuable information or tutorial on this can be found.

Can the hero I need step forward? Haha :slight_smile:

All the best

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49229

Trending Articles