-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
@finos/perspective
3.1.0 fails to build due to src dependency from dist
#2795
Comments
Maybe I was just misinterpreting the docs, they seem to indicate that by default the inline builds are used and a bundler is not needed: https://docs.rs/perspective-js/latest/perspective_js/#installation
And then conversation continues about using bundlers, presumable for the non-default use case of more optimal builds. Maybe the docs are outdated with 3.0 changes? It seems like the inline builds are not the default and instead using the inline builds requires referencing If that is the case then maybe this issue is a documentation should have a specific example of showing the now non-default inline builds? If that is the case I can create a PR to update that documentation. However, even with the inline build I ran into a runtime issue (so not completely sure this is the right direction): #2796 |
same problem here, i've tried everything without success. |
Do you know where we can see documentation for 2.10.1? |
I don't think the documentation is available for the order version (2.xx) |
You can use the Wayback machine to see old docs: https://web.archive.org/web/20240605134744/https://perspective.finos.org/ |
I found a workaround by using the inline builds in the latest package with vite as shown here: #2796 (comment) Maybe this issue should be open to capture documentation updates / updating the vite example for v3.1.2 via inline builds? |
Here's a code example of the workaround:
note that the code commented out was from trial and error. the only catch (quite irritating) is that i'm unable to found a workaround for getting back typescrit Types. Cold you please help me guys ? |
It's here: https://docs.rs/crate/perspective/2.10.1 I'm having the exact same problems with the latest v3 versions unfortunately. |
Bug Report
Steps to Reproduce:
Trying to update the vite example to perspective 3.1.0 fails for two reasons:
vite.config.ts
and updates to package.json script commands to include config file)dist
output has dependencies on thesrc/ts
resulting in build errors like the following:See stackblitz example based on vite example to target es2022 for tla support: https://stackblitz.com/edit/perspective-vite-build-fail
Expected Result:
Library builds successfully
Actual Result:
See above
If you are reporting a UX/UI error:
N/A
If you are reporting a library error:
N/A
If you are reporting a build or install error:
done, see above.
Environment:
For JavaScript (browser):
@finos/perspective
version: 3.1.0For Node.js:
N/A
node
versionFor Python
N/A
python
interpreter version (Only CPython).Additional Context:
Related issues / discussions:
The text was updated successfully, but these errors were encountered: