cookiecutter-sveltekit-fastapi icon indicating copy to clipboard operation
cookiecutter-sveltekit-fastapi copied to clipboard

problem importing webcrypto in polyfills.js

Open cmxela opened this issue 2 years ago • 0 comments

Hello,

When I am executing the npm run dev I am getting the following error message:

import { webcrypto } from 'crypto';
         ^^^^^^^^^
SyntaxError: The requested module 'crypto' does not provide an export named 'webcrypto'
    at ModuleJob._instantiate (internal/modules/esm/module_job.js:124:21)
    at async ModuleJob.run (internal/modules/esm/module_job.js:179:5)
    at async Loader.import (internal/modules/esm/loader.js:178:24)
    at async file:///home/XXXXX/YYYYY//node_modules/@sveltejs/kit/dist/cli.js:933:22

cmxela avatar Jun 30 '22 12:06 cmxela