Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
包含google依赖项时的clojurescript错误_Clojure_Clojurescript - Fatal编程技术网

包含google依赖项时的clojurescript错误

包含google依赖项时的clojurescript错误,clojure,clojurescript,Clojure,Clojurescript,我有一个cljs页面,我需要一个google闭包依赖项- (ns pm.client.models (:require [google.pubsub.PubSub :as pubsub])) 这是我在加载html页面时看到的错误。该错误记录在浏览器的js控制台中- goog.require could not find: goog.storage.mechanism.HTML5LocalStorage goog.requireclient.js:96 (anonymous functio

我有一个cljs页面,我需要一个google闭包依赖项-

(ns pm.client.models
  (:require  [google.pubsub.PubSub :as pubsub]))
这是我在加载html页面时看到的错误。该错误记录在浏览器的js控制台中-

goog.require could not find: goog.storage.mechanism.HTML5LocalStorage
goog.requireclient.js:96
(anonymous function)client.js:20191
client.js:98Uncaught Error: goog.require could not find: goog.storage.mechanism.HTML5LocalStorage
goog.requireclient.js:98
(anonymous function)

使用cljs build编译clojurescript时,我没有看到任何错误。

看起来您没有内置HTML5LocalStorage库的Google闭包jar

这可能是由于指向第三方jar的路径出现问题(不太可能,因为您的项目需要它),或者是因为路径(或名称)在版本中发生了更改。确保您没有引用dev版本中的路径,而是实际使用最终版本。
打开jar和grep,看看HTML5LocalStorage是否/在哪里。

cljs构建是否配置了:optimizations:advanced?