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.

Parenthesis the file path prevent hot reloading of content

See original GitHub issue

Version

@nuxt/content: 1.14.0 nuxt: 2.15.7

Steps to reproduce

Create a Nuxt + @nuxt/content project in directory where some ancestor has parenthesis in the name. For example, ~/Work (Open Source)/my-project

What is Expected?

When I change text in .md or .yml files within the content directory, for the changes to hot reload in my browser when as long as yarn dev is running.

What is actually happening?

Content changes do not hot reload. I need to restart yarn dev before the changes appear in browser. And they do appear on restart of Nuxt. This seems to be an issue only with the hot reloading of content feature. When I move the same project out of a file path containing parenthesis, it works as expected.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Atinuxcommented, Oct 17, 2021

No need to apologise for pinging on weekend @NozomuIkuta and thank you for investigating the issue 😊

Docus and even Nuxt 3 is also using chokidar via unstorage: https://github.com/unjs/unstorage/blob/main/package.json#L43

We can track the issue you created and see if it can be solved: https://github.com/paulmillr/chokidar/issues/1165

I like the idea of unjs/watch but Paul Miller is doing a great job with chokidar and this kind of tool take a lot of time, no need to re-invent the wheel but instead helping on other open source projects.

cc @pi0 (FYI)

0reactions
NozomuIkutacommented, Oct 21, 2021

@weotch

Ha sorry for interrupting your Saturday with this 😓. I appreciate your investigation!

There is definitely no problem on your side. 🙌 Sorry, my words were not enough.

I’m glad to help people in any way I can do. In some meaning, contributing to OSS and playing TV games on weekends are just same kind of thing to me.

My bad is that I tend to play these games too much until I get win some medals. 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle a closing parenthesis in path names in a for ...
I get the error "'C:\Documents' is not recognized as an internal or external command, operable program or batch file." I do know the...
Read more >
Adding Parenthesis with Text in Tikz Flow Chart - TeX
Based on the @js bibra proposition (+1), suggested are the use of the chains and quotes libraries, removed scaling of image by resizebox...
Read more >
file-loader - webpack - JS.ORG
Specifies a custom function to post-process the generated public path. This can be used to prepend or append dynamic global variables that are...
Read more >
Importing document metadata, files, and extracted text
Long file path names - If the load file contains a field used to set the folder path on the folders browser, and...
Read more >
User Manual - rust-analyzer
If you get an error saying No such file or directory: 'rust-analyzer' , see the ... Enter after { indents contents and closing...
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