Giter Club home page Giter Club logo

Comments (3)

pattrickrice avatar pattrickrice commented on August 22, 2024 1

I believe #207 fixes a couple issues here

from bazel-examples.

pattrickrice avatar pattrickrice commented on August 22, 2024

(1) does not reproduce on MacOS

vue git:(main) ✗ bazel run :vite

INFO: Analyzed target //:vite (0 packages loaded, 2 targets configured).
INFO: Found 1 target...
Target //:vite up-to-date:
  bazel-bin/vite.sh
INFO: Elapsed time: 0.088s, Critical Path: 0.00s
INFO: 4 processes: 4 internal.
INFO: Running command line: bazel-bin/vite.sh
INFO: Build completed successfully, 4 total actions

  VITE v3.2.4  ready in 1658 ms

  ➜  Local:   http://127.0.0.1:5173/
  ➜  Network: use --host to expose

(2) however does

vue git:(main) ✗ bazel run :type-check

INFO: Analyzed target //:type-check (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //:type-check up-to-date:
 bazel-bin/type-check.sh
INFO: Elapsed time: 0.072s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Running command line: external/bazel_tools/tools/test/test-setup.sh ./type-check.sh --noEmit
INFO: Build completed successfully, 1 total action
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //:type-check
-----------------------------------------------------------------------------
src/main.ts(4,20): error TS7016: Could not find a declaration file for module '@yourname/yourlibrary'. '/private/var/tmp/_bazel_patrickrice/5f1378e61111ffea33d6f420e032516f/execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/type-check.sh.runfiles/__main__/node_modules/.aspect_rules_js/@[email protected]/node_modules/@yourname/yourlibrary/dist/library.js' implicitly has an 'any' type.
 Try `npm i --save-dev @types/yourname__yourlibrary` if it exists or add a new declaration (.d.ts) file containing `declare module '@yourname/yourlibrary';`

from bazel-examples.

loeffel-io avatar loeffel-io commented on August 22, 2024

(1) and (4) are still there

from bazel-examples.

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.