Code Monkey home page Code Monkey logo

deno-loader-bug's Introduction

Demonstration of a bug with esbuild-deno-loader.

To reproduce:

deno task run   # This works!

Uncomment this line in example.ts:

    // ...denoPlugins()

Now the above command fails with the error:

โœ˜ [ERROR] Expected a JavaScript or TypeScript module, but identified a Unknown module. Importing these types of modules is currently not supported.
  Specifier: file:///Users/codyc/code/bugs/deno-loader-bug/src/style.css [plugin deno-loader]

error: Uncaught (in promise) Error: Build failed with 1 error:
error: Expected a JavaScript or TypeScript module, but identified a Unknown module. Importing these types of modules is currently not supported.
  Specifier: file:///Users/codyc/code/bugs/deno-loader-bug/src/style.css
    at failureErrorWithLog (file:///Users/codyc/Library/Caches/deno/npm/registry.npmjs.org/esbuild/0.20.2/lib/main.js:1651:15)
    at file:///Users/codyc/Library/Caches/deno/npm/registry.npmjs.org/esbuild/0.20.2/lib/main.js:1059:25
    at runOnEndCallbacks (file:///Users/codyc/Library/Caches/deno/npm/registry.npmjs.org/esbuild/0.20.2/lib/main.js:1486:45)
    at buildResponseToResult (file:///Users/codyc/Library/Caches/deno/npm/registry.npmjs.org/esbuild/0.20.2/lib/main.js:1057:7)
    at file:///Users/codyc/Library/Caches/deno/npm/registry.npmjs.org/esbuild/0.20.2/lib/main.js:1086:16
    at responseCallbacks.<computed> (file:///Users/codyc/Library/Caches/deno/npm/registry.npmjs.org/esbuild/0.20.2/lib/main.js:704:9)
    at handleIncomingPacket (file:///Users/codyc/Library/Caches/deno/npm/registry.npmjs.org/esbuild/0.20.2/lib/main.js:764:9)
    at Readable.readFromStdout (file:///Users/codyc/Library/Caches/deno/npm/registry.npmjs.org/esbuild/0.20.2/lib/main.js:680:7)
    at Readable.emit (ext:deno_node/_stream.mjs:1851:9)
    at addChunk (ext:deno_node/_stream.mjs:2873:16)

deno-loader-bug's People

Contributors

nfnitloop avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.