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

Draft: Added export to type Theme<T>. #17

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Enough7
Copy link

@Enough7 Enough7 commented Dec 5, 2024

Hi,

I would like to to use function render, but I can not typehint the theme argument in render.
That's why I added the export.

Best regards
Enough7

@Enough7 Enough7 changed the title Added export to type Theme<T>. Draft: Added export to type Theme<T>. Dec 5, 2024
@Enough7
Copy link
Author

Enough7 commented Dec 5, 2024

I do not know import { render } from 'resumed' does not work for me either.
Maybe it is because I use CommonJS and this repo ES Modules.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /home/Repositories/Privat/CVResumeJSON/Server/node_modules/resumed/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:304:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:594:13)
    at resolveExports (node:internal/modules/cjs/loader:634:36)
    at Module._findPath (node:internal/modules/cjs/loader:724:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/home/Repositories/Privat/CVResumeJSON/Server/dist/Controller/PDFController/PDFGenerator.js:12:19)
    at Module._compile (node:internal/modules/cjs/loader:1469:14) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

@Enough7 Enough7 marked this pull request as draft December 5, 2024 16:45
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

Successfully merging this pull request may close these issues.

1 participant