Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

.d.ts, .js and .js.map files in src. #813

Closed
shaneparsons opened this issue Mar 13, 2017 · 18 comments
Closed

.d.ts, .js and .js.map files in src. #813

shaneparsons opened this issue Mar 13, 2017 · 18 comments

Comments

@shaneparsons
Copy link

Short description of the problem:

My src directory is randomly flooded with .d.ts, .js and .js.map files.

What behaviour are you expecting?

For these unnecessary files not to be there.

Steps to reproduce:

There isn't really any steps to re-produce this as I wasn't really doing anything out of the ordinary... The last thing I did before I noticed this was creating some promises and observers for geolocation data.

Which @ionic/app-scripts version are you using?

1.0.0

Other information:

This issue seems related: #136... though I have no idea what angular barrels are.

@shaneparsons
Copy link
Author

I decided to delete all the garbage files and they haven't come back yet. I'll re-open this if it happens again.

@shaneparsons
Copy link
Author

This happened to me again.

What I was doing:

  • I was working on a practically empty project
  • I had ionic serve running in the background
  • I created a new provider i.e. ionic g provider Camera
  • While copying / pasting code into the provider, I got an error about not having an import and a bunch of garbage files were generated.

@shaneparsons shaneparsons reopened this Mar 14, 2017
@danbucholtz
Copy link
Contributor

It is likely the IDE that is generating these. We only write files to memory.

Thanks,
Dan

@shaneparsons
Copy link
Author

I use sublime text though, which doesn't do anything in terms of writing files. I'm pretty sure it's an ionic serve / webpack issue.

@danbucholtz
Copy link
Contributor

Hmm, it does seem weird. I think we'd hear about this is a lot if it was a common thing. Hmmm. I'm not sure where to go.

@shaneparsons
Copy link
Author

Weird indeed. I'll keep an eye out for if it happens again (it hasn't in a while) and update this with any findings.

@louisdoe
Copy link

same error here ! my directory src/providers just got flooded with .js an .map files. I don't how !

@kernwig
Copy link

kernwig commented Apr 25, 2017

Just happened to me. Ionic v2.4.8. IntelliJ Ultimate 2017. IDE is set to not compile Typescript.

@g1bbzy
Copy link

g1bbzy commented Apr 25, 2017

Same here sublime text 3

@davincif
Copy link

davincif commented Aug 25, 2017

Same to me, also sublime text 3... perhaps sublime does has something to do with it...

@sangwin
Copy link

sangwin commented Sep 14, 2017

Same thing happened to me as well. Sublime text 3.
Can I delete them? Does it affect my app functionality?

@shaneparsons
Copy link
Author

@sangwin From what I remember deleting them is fine.

I haven't had this problem since I switched to VS Code, which is a much better development experience anyways. I'd definitely recommend it to anybody who hasn't tried it yet.

@thierce
Copy link

thierce commented Jan 9, 2018

I have had this happen multiple times with VS code.

@adamjcasey
Copy link

Same here, Sublime Text 3. First time and have built hundreds of times

@davincif
Copy link

@shaneparsons, I have had! ^^" and also friends of mine. so...

@MaximilianFranz
Copy link

Ctrl + b compiles .ts files into their respective .js and .js.map files.
Thats what happened for me, using Sublime Text 3 and the TypeScript plugin. Not an Ionic issue!

@jyprksh001
Copy link

you can use git clean -fd if u havent tracked those files
https://stackoverflow.com/questions/40349369/sublime-how-to-remove-js-map-js-files-of-ts-files-in-sublime-text

@dhistira
Copy link

dhistira commented Jan 22, 2019

this just happen to me, because accidentally click ctrl + b to make typescript plugin on sublime text 3 compile all ts to js. To remove all unnecessary js and map file, try this on your src folder (with cmd)
Windows
del /s *.js
del /s *.map

Mac
find . -name '*.js' -delete
find . -name '*.map' -delete

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

No branches or pull requests