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

🐛 BUG: Plugin "unenv-cloudflare" returned a non-absolute path: buffer (set a namespace if this is not a file path) #6895

Closed
oyeesam opened this issue Oct 4, 2024 · 2 comments
Labels
awaiting reporter response Needs clarification or followup from OP bug Something that isn't working

Comments

@oyeesam
Copy link

oyeesam commented Oct 4, 2024

Which Cloudflare product(s) does this pertain to?

Pages

What version(s) of the tool(s) are you using?

[email protected]

What version of Node are you using?

No response

What operating system and version are you using?

v20.11.0

Describe the Bug

Observed behavior

I am using iron-session package, which with wrangler prevew command is giving me following error


✘ [ERROR] Plugin "unenv-cloudflare" returned a non-absolute path: buffer (set a namespace if this is not
 a file path)

    ../node_modules/.pnpm/[email protected]/node_modules/iron-webcrypto/dist/index.js:3:23:
      3 │ var index_js = require('buffer/index.js');
        ╵                        ~~~~~~~~~~~~~~~~~



✘ [ERROR] Failed to build Functions at ./functions.

I am using Remix

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

✘ [ERROR] Plugin "unenv-cloudflare" returned a non-absolute path: buffer (set a namespace if this is not
a file path)

../node_modules/.pnpm/[email protected]/node_modules/iron-webcrypto/dist/index.js:3:23:
  3 │ var index_js = require('buffer/index.js');
    ╵                        ~~~~~~~~~~~~~~~~~

✘ [ERROR] Failed to build Functions at ./functions.

@oyeesam oyeesam added the bug Something that isn't working label Oct 4, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Oct 8, 2024
@emily-shen
Copy link
Contributor

Hiya, this looks like an issue with the iron-webcrypto package. It looks like you're using quite an old version there, are you able to update iron-session which uses a more recent version of iron-webcrypto? Think iron-webcrypto needs to be a later than 0.4.0.

@emily-shen emily-shen added the awaiting reporter response Needs clarification or followup from OP label Oct 10, 2024
@penalosa
Copy link
Contributor

penalosa commented Nov 8, 2024

We haven't heard from you in while so I'm going to close this issue for now. If you're still running into problems feel free to open a new issue with more details and we can investigate further.

@penalosa penalosa closed this as completed Nov 8, 2024
@github-project-automation github-project-automation bot moved this from Untriaged to Done in workers-sdk Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reporter response Needs clarification or followup from OP bug Something that isn't working
Projects
None yet
Development

No branches or pull requests

3 participants