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

Directory import deep-memo-app/node_modules/@ionic/pwa-elements/loader' is not supported resolving ES modules imported from node_modules/@deep-foundation/capacitor-camera/dist/hooks/use-permissions.js #109

Closed
FreePhoenix888 opened this issue Aug 22, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@FreePhoenix888
Copy link
Member

Directory import deep-memo-app/node_modules/@ionic/pwa-elements/loader' is not supported resolving ES modules imported from node_modules/@deep-foundation/capacitor-camera/dist/hooks/use-permissions.js

@FreePhoenix888
Copy link
Member Author

@FreePhoenix888 FreePhoenix888 added the bug Something isn't working label Aug 30, 2023
@FreePhoenix888
Copy link
Member Author

- info Linting and checking validity of types  
- info Creating an optimized production build  
- info Compiled successfully
- info Collecting page data .Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/home/freephoenix888/Programming/deep/deep-memo-app/node_modules/@ionic/pwa-elements/loader' is not supported resolving ES modules imported from /home/freephoenix888/Programming/deep/deep-memo-app/node_modules/@deep-foundation/capacitor-camera/dist/hooks/use-permissions.js
Did you mean to import @ionic/pwa-elements/loader/index.cjs.js?
    at new NodeError (node:internal/errors:405:5)
    at finalizeResolution (node:internal/modules/esm/resolve:317:17)
    at moduleResolve (node:internal/modules/esm/resolve:943:10)
    at defaultResolve (node:internal/modules/esm/resolve:1129:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)
    at link (node:internal/modules/esm/module_job:76:36) {
  code: 'ERR_UNSUPPORTED_DIR_IMPORT',
  url: 'file:///home/freephoenix888/Programming/deep/deep-memo-app/node_modules/@ionic/pwa-elements/loader'
}

> Build error occurred
Error: Failed to collect page data for /camera
    at /home/freephoenix888/Programming/deep/deep-memo-app/node_modules/next/dist/build/utils.js:1161:15 {
  type: 'Error'
}

@Konard
Copy link
Member

Konard commented Sep 1, 2023

@Menzorg can you help with this issue?

@FreePhoenix888
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants