Skip to content

can't run on webpack #55

Closed
Closed

Description

@sibelius

Please do not report security vulnerabilities here. The Responsible Disclosure Program details the procedure for disclosing security issues.

Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community or Auth0 Support. Finally, to avoid duplicates, please search existing Issues before submitting one here.

By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.

Description

I can't use this package when compiling my backend using webpack

Reproduction

Add this package to this boilerplate https://github.com/entria/entria-fullstack/tree/master/packages/server

Error: ENOENT: no such file or directory, open '/templates/encrypted-key.tpl.xml'
    at Object.openSync (fs.js:439:3)
    at Object.readFileSync (fs.js:344:35)
    at Object.eval (webpack-internal:///../../node_modules/xml-encryption/lib/utils.js:6:23)
    at eval (webpack-internal:///../../node_modules/xml-encryption/lib/utils.js:28:30)

Environment

Please provide the following:

  • Version of this library used: latest
  • Version of the platform or framework used, if applicable: node
  • Other relevant versions (language, server software, OS, browser): mac, javascript, node
  • Other modules/plugins/libraries that might be involved:

Activity

  1. Serg-Mois commented on Nov 10, 2019

    @Serg-Mois

    execute npm install transform-loader brfs --save-dev

    and add the following to webpack.config

    module: {
    rules: [
    {
    test: /utils.js?$/,
    loader: transform-loader/cacheable?brfs,
    },
    ],
    },

    It will add content from this files to bundle. test: /utils.js?$/, - since this call is in this file.
    node_modules/xml-encryption/lib/utils.js

    After that you don't depend on node_modules after build.

  2. added this to the v1.0.0 milestone on Jan 18, 2020
  3. gkwang commented on Jan 31, 2020

    @gkwang
    Contributor

    This should now be fixed with v1.0.0 with inline templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions