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

ra-i18n-i18next does not produce a dist folder when installing #9601

Closed
PedroPerpetua opened this issue Jan 23, 2024 · 1 comment · Fixed by #9603
Closed

ra-i18n-i18next does not produce a dist folder when installing #9601

PedroPerpetua opened this issue Jan 23, 2024 · 1 comment · Fixed by #9603
Assignees
Labels

Comments

@PedroPerpetua
Copy link

What you were expecting:

Installing ra-i18n-i18next would install the package and have it ready to be used.

What happened instead:

ra-i18n-i18next is installed; however, the package does not build automatically, leaving only the source files, and nothing that can actually be imported.

Steps to reproduce:

  1. Initialize a new project (npm init or yarn init)
  2. Install ra-i18n-i18next
  3. Check the folder produced in node_modules

Related code:

See the following sandbox - package was installed, but imports fail. As you can see by the TestComponent, it's not just a typescript issue; the project cannot run the packaged correctly.

https://stackblitz.com/edit/github-ijmaub?file=src%2Findex.tsx

@fzaninotto fzaninotto added the bug label Jan 23, 2024
@fzaninotto
Copy link
Member

Confirmed, thanks for the report.

The problem comes from a missing build-ra-i18n-i18next command there:

build: build-ra-core build-ra-ui-materialui build-ra-data-fakerest build-ra-data-json-server build-ra-data-localforage build-ra-data-localstorage build-ra-data-simple-rest build-ra-data-graphql build-ra-data-graphql-simple build-ra-i18n-polyglot build-ra-input-rich-text build-data-generator build-ra-language-english build-ra-language-french build-react-admin build-ra-no-code build-create-react-admin ## compile ES6 files to JS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants