question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slice machine stops working when converting generated files to .ts(x)

See original GitHub issue

Version

prismic-cli/4.0.1-alpha.12

Reproduction

  1. Generate a slice
  2. Rename .js(x) files to .ts(x)
  3. 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:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hypervillaincommented, Jul 27, 2021

The issue will still be there on beta. I’ll take a look this week @amosbastian thanks for reporting this

1reaction
christianrybecommented, Jul 19, 2021

Interestingly this seems not to be an issue for me with slice-machine 0.1.0-beta.1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found