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

support js 3rd packages #8

Merged
merged 1 commit into from
Jun 21, 2023
Merged

Conversation

HowcanoeWang
Copy link
Contributor

Otherwise, will raise the path errors when using the 3rd pure js packages:

ERROR in ./src/index.ts 29:0-32
Module not found: Error: Can't resolve 'crypto-js/md5' in '/Users/terwer/Downloads/siyuan-plugin-background-cover/src'
resolve 'crypto-js/md5' in '/Users/terwer/Downloads/siyuan-plugin-background-cover/src'
  Parsed request is a module
  using description file: /Users/terwer/Downloads/siyuan-plugin-background-cover/package.json (relative path: ./src)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      /Users/terwer/Downloads/siyuan-plugin-background-cover/src/node_modules doesn't exist or is not a directory
      looking for modules in /Users/terwer/Downloads/siyuan-plugin-background-cover/node_modules
        existing directory /Users/terwer/Downloads/siyuan-plugin-background-cover/node_modules/crypto-js
          using description file: /Users/terwer/Downloads/siyuan-plugin-background-cover/node_modules/crypto-js/package.json (relative path: .)
            using description file: /Users/terwer/Downloads/siyuan-plugin-background-cover/node_modules/crypto-js/package.json (relative path: ./md5)
              no extension
                /Users/terwer/Downloads/siyuan-plugin-background-cover/node_modules/crypto-js/md5 doesn't exist
              .ts
                /Users/terwer/Downloads/siyuan-plugin-background-cover/node_modules/crypto-js/md5.ts doesn't exist
              .scss
                /Users/terwer/Downloads/siyuan-plugin-background-cover/node_modules/crypto-js/md5.scss doesn't exist
              as directory
                /Users/terwer/Downloads/siyuan-plugin-background-cover/node_modules/crypto-js/md5 doesn't exist
      /Users/terwer/Downloads/node_modules doesn't exist or is not a directory
      looking for modules in /Users/terwer/node_modules
        /Users/terwer/node_modules/crypto-js doesn't exist
      /Users/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory

@Vanessa219 Vanessa219 merged commit 3adc9a1 into siyuan-note:main Jun 21, 2023
@Vanessa219 Vanessa219 self-requested a review June 21, 2023 14:49
Vanessa219 added a commit that referenced this pull request Jun 21, 2023
Vanessa219 added a commit that referenced this pull request Jun 21, 2023
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.

2 participants