Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I encountered an installation issue when I attempted to install the package. #267

Closed
mehranjillani786 opened this issue Jun 5, 2024 · 3 comments

Comments

@mehranjillani786
Copy link

ERROR in ./src/components/DocumentViewer/index.js 14:21-39
export 'DocViewerRenderers' (imported as 'DocViewerRenderers') was not found in '@cyntler/react-doc-viewer' (possible exports: default)

ERROR in ./node_modules/@cyntler/react-doc-viewer/dist/esm/index.js 1:0-36
Module not found: Error: Can't resolve './DocViewer' in 'D:\learning\test\node_modules@cyntler\react-doc-viewer\dist\esm'
Did you mean 'DocViewer.js'?
BREAKING CHANGE: The request './DocViewer' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/@cyntler/react-doc-viewer/dist/esm/index.js 3:0-49
Module not found: Error: Can't resolve './renderers' in 'D:\learning\test\node_modules@cyntler\react-doc-viewer\dist\esm'
Did you mean 'index.js'?
BREAKING CHANGE: The request './renderers' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/@cyntler/react-doc-viewer/dist/esm/index.js 4:0-25
Module not found: Error: Can't resolve './models' in 'D:\learning\test\node_modules@cyntler\react-doc-viewer\dist\esm'
Did you mean 'models.js'?
BREAKING CHANGE: The request './models' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/@cyntler/react-doc-viewer/dist/esm/index.js 5:0-36
Module not found: Error: Can't resolve './utils/fileLoaders' in 'D:\learning\test\node_modules@cyntler\react-doc-viewer\dist\esm'
Did you mean 'fileLoaders.js'?
BREAKING CHANGE: The request './utils/fileLoaders' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

webpack compiled with 5 errors and 1 warning

@mehranjillani786 mehranjillani786 changed the title Issue ins upgradation I encountered an installation issue when I attempted to install the package. Jun 5, 2024
@fedenelli
Copy link

+1

@smorton-planview
Copy link
Contributor

smorton-planview commented Jun 6, 2024

See #268 (comment)

It would be great if this gets fixed permanently.

@cyntler
Copy link
Owner

cyntler commented Jun 7, 2024

@Mohon45 @fedenelli @mehranjillani786 Please check the latest version: 1.16.2. I migrated to Vite build/compilation system instead of pure TS.

@cyntler cyntler closed this as completed Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants