-
Notifications
You must be signed in to change notification settings - Fork 12
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
bug: Named export 'CancelablePromise' not found #1058
Comments
cc @susnux |
The import is correct, it is not a CJS module but provides both. So the problem here is that the Fixes possible:
In general all server: {
deps: {
- inline: ['@nextcloud/vue'],
- }
+ inline: [/@nextcloud\//],
+ },
}, |
@susnux Thanks a lot for looking into this! Inlining the dependencies works. Is it a general recommendation to inline all nextcloud dependencies? We might stumble upon this more often, when we migrate more apps to Closing this issue, since there is a fix. |
Well we have the same problem with other test runners like jest too. Meaning most of the test runners try to boost the performance by just letting Node execute the dependencies instead of transpiling. It is not really related to But to answer your question: Yes I would recommend to always transpile |
I get this error
when trying to run
npm run test
with@nextcloud/files@3.8.0
, see here raimund-schluessler/inventory#610. It seems there is a problem with the import herenextcloud-files/lib/dav/dav.ts
Line 17 in bc97504
Is this an error with the package, or do I use it wrong? It used to work fine with 3.1.1.
The text was updated successfully, but these errors were encountered: