Comments (3)
please use https://esm.sh/html-minifier?no-check
instead, the @types/node
is very complex to fix to deno, i have a plan to write standalone types for node builtin modules in the future. currently i just implemented the namespce declearation: https://github.com/postui/esm.sh/blob/master/types/node.ns.d.ts
from esm.sh.
Thank you for your fast reply. That throws a different error concerning require
though:
Download https://esm.sh/html-minifier?no-check
Download https://cdn.esm.sh/v27/[email protected]/deno/html-minifier.js?no-check
Download https://deno.land/[email protected]/node/fs.ts
Download https://cdn.esm.sh/v27/[email protected]/deno/stream-http.js
Download https://cdn.esm.sh/v27/_node_buffer.js
Download https://cdn.esm.sh/v27/[email protected]/deno/url.js
Download https://cdn.esm.sh/v27/_node_process.js
Download https://cdn.esm.sh/v27/[email protected]/deno/path-browserify.js
Download https://cdn.esm.sh/v27/[email protected]/deno/https-browserify.js
Download https://cdn.esm.sh/v27/[email protected]/deno/browser.js
Download https://cdn.esm.sh/v27/[email protected]/deno/querystring-es3.js
Download https://cdn.esm.sh/v27/[email protected]/deno/punycode.js
Download https://cdn.esm.sh/v27/[email protected]/deno/buffer.js
Download https://cdn.esm.sh/v27/[email protected]/deno/util.js
Download https://cdn.esm.sh/v27/[email protected]/deno/events.js
Download https://deno.land/[email protected]/node/_fs/promises/mod.ts
Download https://deno.land/[email protected]/node/_fs/_fs_constants.ts
Download https://deno.land/[email protected]/node/_fs/_fs_mkdir.ts
Download https://deno.land/[email protected]/node/_fs/_fs_lstat.ts
Download https://deno.land/[email protected]/node/_fs/_fs_stat.ts
Download https://deno.land/[email protected]/node/_fs/_fs_close.ts
Download https://deno.land/[email protected]/node/_fs/_fs_open.ts
Download https://deno.land/[email protected]/node/_fs/_fs_readFile.ts
Download https://deno.land/[email protected]/node/_fs/_fs_chown.ts
Download https://deno.land/[email protected]/node/_fs/_fs_readdir.ts
Download https://deno.land/[email protected]/node/_fs/_fs_realpath.ts
Download https://deno.land/[email protected]/node/_fs/_fs_access.ts
Download https://deno.land/[email protected]/node/_fs/_fs_copy.ts
Download https://deno.land/[email protected]/node/_fs/_fs_rename.ts
Download https://deno.land/[email protected]/node/_fs/_fs_readlink.ts
Download https://deno.land/[email protected]/node/_fs/_fs_mkdtemp.ts
Download https://deno.land/[email protected]/node/_fs/_fs_unlink.ts
Download https://deno.land/[email protected]/node/_fs/_fs_truncate.ts
Download https://deno.land/[email protected]/node/_fs/_fs_rmdir.ts
Download https://deno.land/[email protected]/node/_fs/_fs_appendFile.ts
Download https://deno.land/[email protected]/node/_fs/_fs_writeFile.ts
Download https://deno.land/[email protected]/node/_fs/_fs_watch.ts
Download https://deno.land/[email protected]/node/_fs/_fs_exists.ts
Download https://deno.land/[email protected]/node/_fs/_fs_chmod.ts
Download https://deno.land/[email protected]/node/_fs/_fs_common.ts
Download https://deno.land/[email protected]/node/_fs/promises/_fs_writeFile.ts
Download https://deno.land/[email protected]/node/_fs/promises/_fs_readFile.ts
Download https://deno.land/[email protected]/node/_utils.ts
Download https://deno.land/[email protected]/node/path.ts
Download https://deno.land/[email protected]/fs/mod.ts
Download https://deno.land/[email protected]/node/buffer.ts
Download https://deno.land/[email protected]/node/events.ts
Download https://deno.land/[email protected]/testing/asserts.ts
Download https://deno.land/[email protected]/async/mod.ts
Download https://deno.land/[email protected]/path/mod.ts
Download https://deno.land/[email protected]/fs/ensure_file.ts
Download https://deno.land/[email protected]/fs/exists.ts
Download https://deno.land/[email protected]/fs/empty_dir.ts
Download https://deno.land/[email protected]/fs/ensure_dir.ts
Download https://deno.land/[email protected]/fs/ensure_link.ts
Download https://deno.land/[email protected]/fs/ensure_symlink.ts
Download https://deno.land/[email protected]/fs/move.ts
Download https://deno.land/[email protected]/fs/copy.ts
Download https://deno.land/[email protected]/fs/expand_glob.ts
Download https://deno.land/[email protected]/fs/eol.ts
Download https://deno.land/[email protected]/fs/walk.ts
Download https://deno.land/[email protected]/testing/_diff.ts
Download https://deno.land/[email protected]/fmt/colors.ts
Download https://deno.land/[email protected]/_util/assert.ts
Download https://deno.land/[email protected]/_util/os.ts
Download https://deno.land/[email protected]/fs/_util.ts
Download https://deno.land/[email protected]/node/_errors.ts
Download https://deno.land/[email protected]/node/_fs/_fs_dirent.ts
Download https://deno.land/[email protected]/encoding/base64.ts
Download https://deno.land/[email protected]/encoding/hex.ts
Download https://deno.land/[email protected]/async/delay.ts
Download https://deno.land/[email protected]/async/mux_async_iterator.ts
Download https://deno.land/[email protected]/async/pool.ts
Download https://deno.land/[email protected]/async/deferred.ts
Download https://deno.land/[email protected]/path/_interface.ts
Download https://deno.land/[email protected]/path/glob.ts
Download https://deno.land/[email protected]/path/common.ts
Download https://deno.land/[email protected]/path/separator.ts
Download https://deno.land/[email protected]/path/win32.ts
Download https://deno.land/[email protected]/path/posix.ts
Download https://deno.land/[email protected]/node/util.ts
Download https://deno.land/[email protected]/path/_constants.ts
Download https://deno.land/[email protected]/path/_util.ts
Download https://deno.land/[email protected]/node/_util/_util_promisify.ts
Download https://deno.land/[email protected]/node/_util/_util_types.ts
Download https://deno.land/[email protected]/node/_util/_util_callbackify.ts
Check file:///example.ts
error: Uncaught ReferenceError: require is not defined
at https://cdn.esm.sh/v27/[email protected]/deno/html-minifier.js?no-check:7:43918
at https://cdn.esm.sh/v27/[email protected]/deno/html-minifier.js?no-check:1:875
at https://cdn.esm.sh/v27/[email protected]/deno/html-minifier.js?no-check:12:296
at https://cdn.esm.sh/v27/[email protected]/deno/html-minifier.js?no-check:1:875
at https://cdn.esm.sh/v27/[email protected]/deno/html-minifier.js?no-check:16:204
from esm.sh.
i just updated the server to handle therequire.resolve
in node module, but unfortunately it still can NOT work in deno since it needs to read some file in node_modules
that does not exist after build.
from esm.sh.
Related Issues (20)
- Typos on homepage HOT 7
- pnpm should prefer npmRegistry config instead of global npm config HOT 1
- Failed to import - tailwindcss-animate
- Failed to import - `expo-server-sdk` HOT 1
- Failed to import typescript bindings for react-fela HOT 2
- TypeBox: Modules incorrectly caching by path HOT 7
- Failed to import - [email protected] HOT 6
- Failed to import - million/cli
- Failed to import - @lit-protocol/lit-node-client-nodejs - v2 and v3
- Failed to import `lume` HOT 3
- Failed to import - [email protected] (Cloudflare worker is failing) HOT 2
- Failed to import proj4 correctly HOT 3
- Failed to dynamic import stripe module HOT 7
- Is this project maintained? HOT 1
- Failed to import - @putout/plugin-nodejs (native nodejs `module` used)
- Failed to import youtube-transcript
- [breaking change request] disable bundling by default HOT 1
- Failed to import - gh/bablr-lang/bablr-vm HOT 14
- Failed to import - custom code
- Failed to import - axios HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esm.sh.