Slice machine stops working when converting generated files to .ts(x)
See original GitHub issueVersion
prismic-cli/4.0.1-alpha.12
Reproduction
- Generate a slice
- Rename
.js(x)
files to.ts(x)
- It works until you stop slice machine and run it again:
UnhandledPromiseRejectionWarning: Error: ENOTDIR: not a directory, lstat '/Users/amosbastian/Development/xxx/src/slices/index.ts/model.json'
What is expected?
I want to use TypeScript so I want to be able to rename js(x)
files to ts(x)
without a problem.
What is actually happening?
It works fine until restarting slice machine, then it won’t load the slices anymore until I change all ts(x)
files back to js(x)
files.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Error migratin slice-machine-ui from 0.46 to 0.1.0-beta.1 ...
Hello, everyone I updated slice-machine-ui from 0.46 to 0.1.0-beta.1 and I get ... Slice machine stops working when converting generated files to .ts(x)....
Read more >TSConfig Reference - Docs on every TSConfig option
This technique lets you generate types ahead of time for the non-code source files. Imports then work naturally based off the source file's...
Read more >Repair Corrupt Video Files using FFmpeg
This blog aims to answer all the queries related to repairing corrupt video files like MOV, MP4, F4V, M4V, 3GP, AVI etc using...
Read more >8 Steps to Migrating from JavaScript to TypeScript | Blog
Migrating from JavaScript to TypeScript is no easy task. See how we managed to do it in 8 steps. Read More.
Read more >Codebase Conversion: Migrating a MEAN AngularJS app to ...
My Philosophy of TS Conversion; TypeScript Settings; File Conversion ... most of the major problems and get the codebase mostly stabilized.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue will still be there on beta. I’ll take a look this week @amosbastian thanks for reporting this
Interestingly this seems not to be an issue for me with slice-machine
0.1.0-beta.1