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.

I receive below error when I try to re-render a course using command udacimak render "React v1.0.0".

2018-11-16T06:45:50.712Z [error]: ERROR: ENOENT: no such file or directory, open 'React v1.0.0\assets\css\fonts\data.json'
CODE: ENOENT
STACK: Error: ENOENT: no such file or directory, open 'React v1.0.0\assets\css\fonts\data.json'
    at Object.openSync (fs.js:436:3)
    at Object.readFileSync (fs.js:341:35)
    at writeHtmlLesson (C:\Users\miu-razor\AppData\Roaming\npm\node_modules\udacimak\lib\commands\render\functions\writeHtmlLesson.js:38:26)
    at renderCourse (C:\Users\miu-razor\AppData\Roaming\npm\node_modules\udacimak\lib\commands\render\functions\renderCourse.js:115:45)

I am on Window, using udacimak v1.2.0 The file data.json is indeed absent.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
udacimakcommented, Nov 16, 2018

Yes --targetdir is optional. But we shouldn’t put downloaded and rendered content in the same directory.

For example, I like to structure my content as such:

udacimak
├── _json
│   ├── React v1.0.0
│   │   ├── (This folder contains downloaded JSON data)
├── React v1.0.0
│   ├── (This folder contains rendered contents)

The downloaded and rendered folders must be separated.

1reaction
jacky-tttcommented, Nov 16, 2018

since the --targetdir is optional, the downloaded and render content live in the same directory, “React v1.0.0”. Does it mean that --targetdir should not be optional?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't re-render after update in React - Stack Overflow
I have a simple database in React where updates and deletions to the database are handled via Ajax. After the successful Ajax call...
Read more >
How and when to force a React component to re-render
React automatically re-renders components, but what happens when a component is not updating as expected? Find out what you can do here.
Read more >
When does React re-render components? - Felix Gerschau
React is known for providing a fast user experience by only updating the parts of the UI that have changed. When looking into...
Read more >
React re-renders guide: everything, all at once - Developer way
Re-render happens when React needs to update the app with some new data ... Those re-renders can not be prevented with memoization directly, ......
Read more >
When does React render your component? - Zhenghao
React tries to batch state updates into one render pass. However, React cannot batch state updates in promises, because React has no control ......
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