cyntler / cyntler/react-doc-viewer

Cant use local file

Open
#166 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

Hello i need help

How to use local file when i can use require?
I am using typescript + vite and everytime when i want to pass require shows me error require is no a function so now i dont know how to repair it?

![obrázok](https://github.com/cyntler/react-doc-viewer/assets/1640235/508d7e2f-31fb-4402-9b51-28a977de6e4d)

Thanks for any help :)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the local-file case in the TypeScript and Vite setup described in the issue, then inspect the documented file-loading entry point. Done means the local file loads without the reported require error; the issue does not name a source file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript, vite
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.