Skip to content

Commit f6a3e06

Browse files
committed
docs: link to the official Nuxt 3 module
1 parent d96c63d commit f6a3e06

File tree

8 files changed

+1915
-1557
lines changed

8 files changed

+1915
-1557
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Codecov][codecov-src]][codecov-href]
77
[![Standard JS][standard-js-src]][standard-js-href]
88

9-
> [Sentry](http://sentry.io) module for [Nuxt 2](https://nuxtjs.org)
9+
> [Sentry](http://sentry.io) module for [Nuxt 2](https://v2.nuxt.com/). For [Nuxt 3+](https://nuxt.com/) support see the official [`@sentry/nuxt` module](https://docs.sentry.io/platforms/javascript/guides/nuxt/).
1010
1111
- [ Release Notes](https://sentry.nuxtjs.org/releases)
1212
- [📖  Documentation](https://sentry.nuxtjs.org)

docs/content/en/configuration/options.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ position: 15
55
category: Configuration
66
---
77

8+
<alert type="info">
9+
10+
This module is for Nuxt 2. For [Nuxt 3+](https://nuxt.com/) support see the official [`@sentry/nuxt` module](https://docs.sentry.io/platforms/javascript/guides/nuxt/).
11+
12+
</alert>
13+
814
Options can be passed using either:
915
- environment variables
1016
- `sentry` object in `nuxt.config.js`

docs/content/en/configuration/runtime-config.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ position: 16
55
category: Configuration
66
---
77

8+
<alert type="info">
9+
10+
This module is for Nuxt 2. For [Nuxt 3+](https://nuxt.com/) support see the official [`@sentry/nuxt` module](https://docs.sentry.io/platforms/javascript/guides/nuxt/).
11+
12+
</alert>
13+
814
Defining options using the [Nuxt Runtime Config](https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-runtime-config/) functionality allows them to be runtime-based rather than build-time based, as is the case by default.
915

1016
Currently, only the `config`, `clientConfig` and `serverConfig` [options](/configuration/options) can be configured using the runtime config.

docs/content/en/getting-started/setup.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ position: 10
55
category: Getting Started
66
---
77

8+
<alert type="info">
9+
10+
This module is for Nuxt 2. For [Nuxt 3+](https://nuxt.com/) support see the official [`@sentry/nuxt` module](https://docs.sentry.io/platforms/javascript/guides/nuxt/).
11+
12+
</alert>
13+
814
Check the [Nuxt.js documentation](https://nuxtjs.org/guides/configuration-glossary/configuration-modules) for more information about installing and using modules in Nuxt.js.
915

1016
> Nuxt.js v2.16.0+ is required, earlier versions are not supported.

docs/content/en/index.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,16 @@ position: 1
55
category: ''
66
---
77

8-
<img src="/preview.png" class="light-img" width="1280" height="640" alt=""/>
9-
<img src="/preview-dark.png" class="dark-img" width="1280" height="640" alt=""/>
10-
11-
[Sentry Module](https://github.com/nuxt-community/sentry-module) for [NuxtJS 2](https://v2.nuxt.com/).
12-
8+
<alert type="info">
139

14-
<alert type="warning">
10+
This module is for Nuxt 2. For [Nuxt 3+](https://nuxt.com/) support see the official [`@sentry/nuxt` module](https://docs.sentry.io/platforms/javascript/guides/nuxt/).
1511

16-
If you want support for Nuxt 3, please help by voting on the first post [in this discussion](https://github.com/getsentry/sentry-javascript/discussions/6929).
12+
</alert>
1713

18-
In the meantime, you can try a [solution that provides limited functionality](https://www.lichter.io/articles/nuxt3-sentry-recipe/).
14+
<img src="/preview.png" class="light-img" width="1280" height="640" alt=""/>
15+
<img src="/preview-dark.png" class="dark-img" width="1280" height="640" alt=""/>
1916

20-
</alert>
17+
[Sentry Module](https://github.com/nuxt-community/sentry-module) for [Nuxt 2](https://v2.nuxt.com/).
2118

2219
## Features
2320

@@ -27,4 +24,4 @@ The module enables error logging through [Sentry](https://sentry.io/).
2724

2825
* [GitHub](https://github.com/nuxt-community/sentry-module)
2926
* [Releases](https://github.com/nuxt-community/sentry-module/releases)
30-
* [MIT Licence](https://github.com/nuxt-community/sentry-module/blob/master/LICENSE)
27+
* [MIT Licence](https://github.com/nuxt-community/sentry-module/blob/master/LICENSE)

docs/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66
"dev": "nuxt",
77
"build": "nuxt build",
88
"start": "nuxt start",
9-
"generate": "nuxt generate"
9+
"generate": "nuxt generate",
10+
"postinstall": "patch-package"
11+
1012
},
1113
"dependencies": {
1214
"@nuxt/content-theme-docs": "0.11.1",
15+
"@nuxt/types": "^2.18.1",
1316
"@nuxtjs/redirect-module": "^0.3.1",
14-
"nuxt": "2.17.4"
17+
"nuxt": "2.18.1",
18+
"patch-package": "^8.0.0"
1519
}
1620
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
diff --git a/node_modules/@nuxtjs/tailwindcss/lib/module.js b/node_modules/@nuxtjs/tailwindcss/lib/module.js
2+
index c935c0b..0352b28 100644
3+
--- a/node_modules/@nuxtjs/tailwindcss/lib/module.js
4+
+++ b/node_modules/@nuxtjs/tailwindcss/lib/module.js
5+
@@ -56,17 +56,19 @@ module.exports = async function (moduleOptions) {
6+
*/
7+
const { postcss } = nuxt.options.build
8+
9+
- postcss.preset.stage = 1 // see https://tailwindcss.com/docs/using-with-preprocessors#future-css-features
10+
- postcss.plugins = postcss.plugins || {}
11+
+ postcss.postcssOptions = postcss.postcssOptions || {}
12+
+ postcss.postcssOptions.preset = postcss.postcssOptions.preset || {}
13+
+ postcss.postcssOptions.preset.stage = 1 // see https://tailwindcss.com/docs/using-with-preprocessors#future-css-features
14+
+ postcss.postcssOptions.plugins = postcss.postcssOptions.plugins || {}
15+
16+
// Let modules extend the tailwind config
17+
await nuxt.callHook('tailwindcss:config', tailwindConfig)
18+
19+
/* istanbul ignore if */
20+
- if (Array.isArray(postcss.plugins)) {
21+
+ if (Array.isArray(postcss.postcssOptions.plugins)) {
22+
logger.error('Array syntax for postcss plugins is not supported with v3. Please use the object syntax: https://nuxtjs.org/guides/configuration-glossary/configuration-build#postcss')
23+
- } else if (typeof postcss.plugins === 'object') {
24+
- postcss.plugins.tailwindcss = tailwindConfig
25+
+ } else if (typeof postcss.postcssOptions.plugins === 'object') {
26+
+ postcss.postcssOptions.plugins.tailwindcss = tailwindConfig
27+
}
28+
29+
/*

0 commit comments

Comments
 (0)