Code Monkey home page Code Monkey logo

Comments (3)

whalemare avatar whalemare commented on August 21, 2024

Same issue. Building with nx and @nrwl/esbuild:esbuild

from terminal-kit.

whalemare avatar whalemare commented on August 21, 2024

@bcmRayCrazy-coder I think I realize.

You need to say to your bundler that this library in using local imports and it should be external.
In esbuild I have this option. Rollup have this option too, maybe it can help in your case.

My config for nx.dev

{
// ...
  "projectType": "application",
  "targets": {
    "build": {
      "executor": "@nrwl/esbuild:esbuild",
      "outputs": ["{options.outputPath}"],
      "options": {
        "outputPath": "dist/apps/react-native-deploy",
        "format": ["cjs"],
        "main": "apps/react-native-deploy/src/main.ts",
        "tsConfig": "apps/react-native-deploy/tsconfig.app.json",
        "assets": [
          "apps/react-native-deploy/src/assets"
        ],

        // >>>>>>> this lines below for you
        "external": [
          "terminal-kit"
        ]

      }
    },
   // ....
}

from terminal-kit.

WilliamRelken avatar WilliamRelken commented on August 21, 2024

I am experiencing the same issue packaging terminal kit. I reached the same error after setting --external:terminal-kit in esbuild.

from terminal-kit.

Related Issues (20)

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.