GithubHelp home page GithubHelp logo

artmizu / nuxt-2-prometheus Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 592 KB

Allows you to better understand what's going on with your application and how to optimize performance and other things in production

JavaScript 1.97% Shell 0.45% TypeScript 48.97% Vue 48.60%

nuxt-2-prometheus's People

Contributors

artmizu avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

nuxt-2-prometheus's Issues

Can not install

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

Support for Node 18

Hi!

Thanks for your project it works well with Node 16 but doesn't seem working with Node 18:

image

If we try to bypass engines restriction it still doesn't work:

image

If you consider to add support for Node v18 it would be great.

Error in production build with `--standalone` build

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.