mdx-deck icon indicating copy to clipboard operation
mdx-deck copied to clipboard

.cache/ is created in node_modules/mdx-deck/ on build

Open millette opened this issue 4 years ago • 3 comments

Maybe it's not a bug per say, but I just noticed a .cache/ directory was created in node_modules/mdx-deck/ when I mdx-deck build deck.mdx, which I found sort of weird.

Should this be fixed or is it normal behavior? I would have expected .cache/ directory be created in my project root, not down into a node_modules/ directory.

millette avatar May 31 '20 20:05 millette

I am seeing this issue as well. The mdx-deck deck.mdx process console logs the following two lines twice every second when running:

info added directory at <path_to_project>/node_modules/mdx-deck/.cache/redux

Not only annoying, but also useless noise.

I also agree with you, @millette, the .cache directory should reside in the project root.

jorabra avatar Jun 08 '20 08:06 jorabra

Is there an update? I still have the problem @jorabra described when running mdx-deck deck.mdx. Every second I get these messages, over and over again:

info added directory at /<path_to_project>/node_modules/mdx-deck/.cache/redux
info added directory at /<path_to_project>/node_modules/mdx-deck/.cache/redux
success building schema - 0.105s
success createPages - 0.002s
success Checking for changed pages - 0.001s
success update schema - 0.012s
success onPreExtractQueries - 0.002s
success extract queries from components - 0.016s
success write out requires - 0.001s

domvo avatar Sep 01 '20 09:09 domvo

Running into this as well. Seems to be related to: https://github.com/jxnblk/mdx-deck/issues/654

Am experiencing the same thing @jorabra described.

For now I am working around this by downgrading to version 4.0.0.

HoverBaum avatar Sep 23 '20 13:09 HoverBaum