我正在做一个Vue + typescript项目。我想用来process.env.var_name调整项目是处于开发模式还是生产模式,就像
const isProduct = process.env.APP_ENV === "prod";
Run Code Online (Sandbox Code Playgroud)
; 但是我在下面遇到了错误。我以前从未遇到过这个错误,所以有人可以告诉我为什么会发生这种情况,这样我就可以尝试找出项目中发生了什么,然后修复它。
全部。Fast-DDS-Gen我目前正在我的上安装MacOS;但是,安装失败,因为我遇到了以下错误。我该如何解决这个问题?
这是URL官方网站:https://fast-dds.docs.eprosima.com/en/latest/installation/sources/sources_mac.html
以下是官方网站的说明:
brew install gradle
cd ~
git clone --recursive https://github.com/eProsima/Fast-DDS-Gen.git
cd Fast-DDS-Gen
gradle assemble
Run Code Online (Sandbox Code Playgroud)
当我执行命令时gradle assemble,遇到以下错误:
> Task :buildIDLParser FAILED
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/scott/Fast-DDS-Gen/thirdparty/idl-parser/build.gradle' line: 79
* What went wrong:
A problem occurred evaluating project ':idl-parser'.
> Could not set unknown property 'classifier' for task ':idl-parser:sourceJar' of type org.gradle.api.tasks.bundling.Jar.
* Try:
> Run with --stacktrace option to get the stack trace.
> …Run Code Online (Sandbox Code Playgroud)