jxnblk / mdx-deck

♠️ React MDX-based presentation decks

Home Page:https://mdx-deck.jxnblk.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

millette opened this issue · 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.

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.

commented

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

Running into this as well. Seems to be related to: #654

Am experiencing the same thing @jorabra described.

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