Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in frontend #6

Open
capinho opened this issue Mar 17, 2020 · 6 comments
Open

Problem in frontend #6

capinho opened this issue Mar 17, 2020 · 6 comments

Comments

@capinho
Copy link

capinho commented Mar 17, 2020

when try to start the frontend i alway get this error

"src/app/framework/models/UserList.ts(1,22): error TS1149: File name '/Users/TASK-Management-System-master/frontend/src/app/framework/models/User.ts' differs from already included file name '/Users//TASK-Management-System-master/frontend/src/app/framework/models/user.ts' only in casing."

@github-actions
Copy link

Thanks for raising this issue' first issue

@ayushman1024
Copy link
Owner

I cannot replicate this error
On which OS are you running front-end ?
Please try pull-merge once , if you are using old copy.

@ayushman1024
Copy link
Owner

ayushman1024 commented Mar 17, 2020

UserList.ts should look like below code.

import { User } from './User';

export class UserList {
  userList: User[];
  constructor() {}
}

@capinho
Copy link
Author

capinho commented Mar 17, 2020

yes this is excactly what i got
I finally fixed my problem by changing the import to lowercase like this:

import{ User } from './user';

export class UserList {
  userList: User[];
  constructor() {}
}

@ayushman1024
Copy link
Owner

Changing ./User to ./user may help in successfully compiling Typescript.
But may result in runtime error during execution.
This is not permanent fix.
This happened because of corrupt refactoring.
It is known issue in TS.
I would try to fix this issue..and inform you with next commit.

@ayushman1024
Copy link
Owner

Hi Please do following

  1. Put ignorecase = false in git config file in your repository as given in below code. You can find config file at path .git/config in your local repository.
  2. Put ./User in import as it was originally.
  3. Windows ignore cases for file names, but linux based system like macos didnt, this would have created problem
  4. Then Pull-merge again

Then let me know if problem still exists

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants