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

can't run on webpack #55

Closed
sibelius opened this issue Oct 14, 2019 · 2 comments
Closed

can't run on webpack #55

sibelius opened this issue Oct 14, 2019 · 2 comments
Milestone

Comments

@sibelius
Copy link

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:
@Serg-Mois
Copy link

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.

@chris-armstrong chris-armstrong mentioned this issue Jan 13, 2020
3 tasks
@gkwang gkwang added this to the v1.0.0 milestone Jan 18, 2020
@gkwang
Copy link
Contributor

gkwang commented Jan 31, 2020

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants