包含google依赖项时的clojurescript错误
我有一个cljs页面,我需要一个google闭包依赖项-包含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
(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?