artmizu / nuxt-2-prometheus Goto Github PK
View Code? Open in Web Editor NEWAllows you to better understand what's going on with your application and how to optimize performance and other things in production
Allows you to better understand what's going on with your application and how to optimize performance and other things in production
error An unexpected error occurred: "https://registry.yarnpkg.com/@artmizu%2fnuxt-analytics: Not found".
I ran: yarn add -D @artmizu/nuxt-analytics
and got this error
I am using Node v14.21.2, Nuxt v2.15.8
Hi @artmizu,
System:
OS: Windows 10 10.0.19044
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 3.15 GB / 15.87 GB
Binaries:
Node: 16.17.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
npm: 8.18.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (111.0.1661.44)
Internet Explorer: 11.0.19041.1566
npmPackages:
nuxt: ^2 => 2.16.3
I got this error, when run production build with --standalone
flag. https://nuxtjs.org/docs/configuration-glossary/configuration-build/#standalone
#0 205.4 Entrypoint app = server.js server.js.map
#0 205.4
#0 205.4 WARNING in ./node_modules/consola/dist/consola.js 1:52454-52461
#0 205.4 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
#0 205.4 @ ./.nuxt/runtime.plugin.633efce6.js
#0 205.4 @ ./.nuxt/index.js
#0 205.4 @ ./.nuxt/server.js
#0 205.4 @ multi ./node_modules/@nuxt/components/lib/installComponents.js ./.nuxt/server.js
#0 205.4
#0 205.4 ERROR in ./node_modules/@remix-run/web-fetch/dist/lib.node.cjs 279:30
#0 205.4 Module parse failed: Unexpected token (279:30)
#0 205.4 You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
#0 205.4 | const toFormData = async (source) => {
#0 205.4 | let { body, headers } = source;
#0 205.4 > const contentType = headers?.get('Content-Type') || '';
#0 205.4 |
#0 205.4 | if (contentType.startsWith('application/x-www-form-urlencoded') && body != null) {
#0 205.4 @ ./node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/XMLHttpRequestOverride.js 14:20-51
#0 205.4 @ ./node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/index.js
#0 205.4 @ ./node_modules/@mswjs/interceptors/lib/presets/node.js
#0 205.4 @ ./.nuxt/runtime.plugin.633efce6.js
#0 205.4 @ ./.nuxt/index.js
#0 205.4 @ ./.nuxt/server.js
#0 205.4 @ multi ./node_modules/@nuxt/components/lib/installComponents.js ./.nuxt/server.js
#0 205.4
#0 205.4 Hash: 7917b9cda00ba6b4d585
#0 205.4 Version: webpack 4.46.0
#0 205.4 Time: 120428ms
#0 205.4 Built at: 03/27/2023 2:45:11 PM
The server build crashed.
I tried this solution, but doesn't working:
extend(config, { isServer }) {
if (isServer) {
config.externals = [/^@artmizu/i];
}
},
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.