You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started to use Bazel today for a typescript project but I'm facing some difficulities.
I want to import a json file in the typescript but I don't know how to do that.
The code is composed of two packages: core and installer.
The installer package has an index file that call a function from the core package and import a json config file in order to display the content.
I can transpile the code using the ts_project directive however when I bundle it with the rollup_bundle directive I've got the following error:
bazel build //packages/installer:bundle
INFO: Analyzed target //packages/installer:bundle (1 packages loaded, 8 targets configured).
INFO: Found 1 target...
ERROR: /home/pchakour/development/standalone_help/packages/installer/BUILD.bazel:27:14: Bundling JavaScript packages/installer/bundle.js [rollup] failed: I/O exception during sandboxed execution: /home/pchakour/.cache/bazel/_bazel_hawk/c0fe4c1c89ca7e38d6e682b58eec58b1/sandbox/linux-sandbox/78/execroot/standalone/bazel-out/k8-fastbuild/bin/packages/installer/transpiled (Le fichier existe)
Target //packages/installer:bundle failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.311s, Critical Path: 0.05s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone !
I started to use Bazel today for a typescript project but I'm facing some difficulities.
I want to import a json file in the typescript but I don't know how to do that.
The code is composed of two packages: core and installer.
The
installer
package has an index file that call a function from thecore
package and import a json config file in order to display the content.I can transpile the code using the
ts_project
directive however when I bundle it with therollup_bundle
directive I've got the following error:I push the code here : https://github.com/pchakour/bazel_first_steps
The target to transpile is
//packages/installer:transpile
.The target to bundle is
//packages/installer:bundle
.If someone has a clue, I'm a little bit lost :-(
I can give you more details if needed...
Beta Was this translation helpful? Give feedback.
All reactions