can't re-render
See original GitHub issueI 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 [[31merror[39m]: 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:
- Created 5 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:
The downloaded and rendered folders must be separated.
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?