我遇到的问题,刚刚开始昨天,2021年12月7日左右,东部时间中午。我在Docker容器中部署了一个NextJS应用程序。在生产模式下从容器中部署此应用程序,现在会给出一个空白页面,并在浏览器控制台中出现一个小错误(更详细的信息如下)。
在昨天之前,我没有遇到过这样的问题。
此问题可在运行在AWS EC2实例和我的本地计算机上的Docker容器中复制。在使用npm run dev进行本地开发时,以及在码头容器外运行npm run build && npm run start时,都不会显示错误。在我的本地开发环境上,所有东西都开发、构建和显示得很好。
在docker容器中,我可以
我正在使用Angular,但在服务器上的生产环境中,我得到了这个错误: https://daphneprojects.nl/invoices see here at this link.
Error: Uncaught (in promise): NullInjectorError: StaticInjectorError[A -> A]:
StaticInjectorError(Platform: core)[A -> A]:
NullInjectorError: No provider for A!
NullInjectorError: StaticInje
我不确定标题是否正确,我会尽我所能解释:
我有4页,分别是a1.vue,a2.vue,b1.vue和b2.vue
我的router/index.js:
import a1 from '@/components/a1';
import a2 from '@/components/a2';
import b1 from '@/components/b1';
import b2 from '@/components/b2';
var router = new Router({
routes: [{
Angular应用程序在开发模式下运行良好,甚至在使用--prod --optimization=false时也运行良好,但当我使用--prod --optimization=true构建时(我猜默认情况下优化是正确的),我得到以下错误。 关于在哪里查找错误或如何调试此错误,您有什么想法吗?如果有帮助的话,我还在下面粘贴我的package.json依赖项。 [Error] ERROR
Error: Uncaught (in promise): TypeError: undefined is not a constructor (evaluating 'new Lt.Subject
当试图将ETH发送到智能令牌合同时,我会收到此错误。
我可以白名单帐户1,但当试图购买令牌用我的第二个帐户或白名单第二个帐户,这个错误显示。
拒绝加载铬扩展-资源必须在web_accessible_resources清单键中列出,这样才能被扩展之外的页面加载。
错误出现在google控制台中。
inpage.js:1 Uncaught TypeError: Cannot read property 'subscription' of undefined
at t.exports.data (index.js:105)
at u (inpage.js:1)
问题
有一个通用的应用程序,它使用服务工作者。
最近从角6.1升级到7。
将更新的文件上载到服务器后,获取:
详细信息:
The script has an unsupported MIME type ('text/html'). Failed to load resource: net::ERR_INSECURE_RESPONSE main.2733b77522d2feee4713.js:1 ERROR Error: Uncaught (in promise): SecurityError: Failed to register a ServiceWorker: T
我在一个流星应用程序中使用react。在开发模式下运行时,它工作得很好,但是当我在生产模式下运行它并且代码被缩小时,当应用程序加载时,我会得到下面的ReferenceError和浏览器控制台中的小型化反应错误。当我试图部署它时,也会发生同样的情况。
它正在被缩小使用在中构建的。当我meteor remove这个包时,它工作得很好,所以它肯定是小型化的。
我很困惑。我知道所讨论的行是react-dom的一部分,但我不知道是哪一部分,或者为什么它只在缩小后抛出一个错误。
说:
Should have found an error boundary. This error is likely cau
我有一个普通的Nuxt设置,在尝试使用fetch()钩子呈现页面时得到以下错误: 错误: [Vue warn]: Property or method "$fetchState" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https
我正在制作一个角度待办事项列表,在刷新时保存和恢复,在本地主机上,我可以添加到列表中,项目显示在add按钮下面。在GitHub页面上,当我单击add时,它什么也不做。
这是我从控制台得到的错误:
ERROR TypeError: Cannot read properties of null (reading 'push')
at e.addTodo (main.2beb7ccacdd609b1.js:1:139904)
at main.2beb7ccacdd609b1.js:1:140617
at Qh (main.2beb7ccacdd609b1.
我已经做了很多研究来解决这个问题,但是,没有找到任何解决办法。我使用了c3 js version 0.7.11和角CLI version 7.0.7。有人能帮我解决这个问题吗?
main.b5c5d0251120bfab71af.js:1 ERROR TypeError: t.rgb is not a function
at xe (main.b5c5d0251120bfab71af.js:1)
at we (main.b5c5d0251120bfab71af.js:1)
at main.b5c5d0251120bfab71af.js:1
at Vm (main
我有一个nextjs项目,v12.1.3和react v18.1.0。我使用firebase实时数据库来处理项目中的通知。它在开发模式下工作,但在生产中(在构建的环境上)不起作用。
我得到的错误如下:
ReferenceError: emptyChildrenSingleton is not defined
at new bV (a198fdd9-b0625f5d1b77c03a.js:1:75705)
at new cF (a198fdd9-b0625f5d1b77c03a.js:1:95593)
at a198fdd9-b0625f5d1b77c03a.js:1:1
在我的应用程序的build中,当从根dir加载index.html或由服务器承载时,我会得到这个错误:
ERROR Error: Uncaught (in promise): SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///G:/#/' cannot be created in a document with origin 'null' and URL 'file:/
我在Angular 6应用程序的开发环境中没有任何错误,ng build也没有问题,但当我在浏览器中打开index.html时,只有在prod环境中才有这个错误,在开发环境中没有错误
main.bb9d6a4351478c72b831.js:1 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'MultiDB'
Error: Cannot match any routes. URL Segment: 'MultiDB'
at e.noMatc
为什么这段代码不能工作?
我有下面的app.ts
var a = 1;
var b = 3;
console.log(`Before a = ${a}, b = ${b}`);
[a, b] = [b, a];
console.log(`After a = ${a}, b = ${b}`);
当我试着用
节点app.ts
我有下一个:
[a, b] = [b, a];
^
ReferenceError: Invalid left-hand side in assignment
at exports.runInThisContext (vm.js:53:16)
at
我有一组js文件,我在编译时连接成一个唯一的文件,然后在上面运行YUI压缩器(都是在maven下)。
不幸的是,文件的内容不是模糊的。这就好像所有声明的变量和方法都被认为是公共的(因此是不可混淆的)。
例如,a.js使用在b.js中声明的方法。拼接文件的内容为:
(function() {
// b.js' content...
// a.js' content...
(function() {
// Some var and methods of a declared here
$(document).ready
我安装了react-rails,因为我想在我的rails 5.2.4应用程序上使用Rails。 当我安装它时,我基本上在我的app/javascripts/目录中得到了以下顺序: components [directory]
---.keep file
packs [directory]
---applicationCache.js
---hello_react.jsx
---server_rendering.jsx 在我的components目录中,我在app\javascripts\components\' which I link to my Appointments cont
我试图使用创建一个应用程序--它在本地工作,但是在生产中,它会产生以下错误:
Application error: a client-side exception has occurred (see the browser console for more information).
这是我的浏览器错误
framework-7751730b10fa0f74.js:9
RangeError: minimumFractionDigits value is out of range.
at new NumberFormat (<anonymous>
在Node中测试以下模块布局,看起来本地导出的定义总是在名称冲突的情况下替换外部导出的定义(参见f1 in B.js)。
A.js
export const f1 = 'A'
B.js
export * from './A.js'
export const f1 = 'B'
C.js
import * as A from './A.js'
import * as B from './B.js'
console.log(A.f1)
console.log(B.f1)
> node C.js
// A
// B
我在我的应用程序中使用vue-confetti包,但是它在构建时给出了下面的错误,我想知道如何克服这个错误,如何使它只在客户端使用Gridsome呈现。
ReferenceError: window is not defined
at Object.<anonymous> (node_modules/vue-confetti/dist/vue-confetti.js:1:210)
at __webpack_require__ (webpack/bootstrap:25:0)
at Module.<anonymous> (assets/js/app
我可以通过writeIntBE将-1写入缓冲区,代码是:
var b = new Buffer(1);
b.writeIntBE(-1, 0, 1);
console.log(b);
//<Buffer ff>
但是,下面的代码没有功能
var b = new Buffer(1);
b.writeIntBE(0xff, 0, 1);
console.log(b);
错误代码是:
buffer.js:794
throw new TypeError('value is out of bounds');
^
TypeError: value is out
我正在尝试更新下一个JS初学者中的依赖项
在升级到18.0.0之后,一切都进行得很好。
但是在生产中,当尝试导航到其他页面时。未呈现新页,此错误将记录在控制台中。
TypeError: (0 , h.default.startTransition) is not a function
at h.default.createElement.callbacks (main-8f675a98ab9e3b2e.js:1:16469)
at fe (main-8f675a98ab9e3b2e.js:1:16546)
at main-8f675a98ab9e3b2e.js:1:11
我已经读到,某些模块或服务没有提供等可以导致这个问题,但一切似乎已经到位。
完全错误是:
vendor.96643eaf6ee79e7b894d.bundle.js:1 ERROR Error: No provider for t!
at x (vendor.96643eaf6ee79e7b894d.bundle.js:1)
at S (vendor.96643eaf6ee79e7b894d.bundle.js:1)
at t._throwOrNull (vendor.96643eaf6ee79e7b894d.bundle.js:1)
at t._getByKeyDefault (vendor