@byu-oit/nuxt-common 2.17.8 → 2.17.9-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +27 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,7 +1,33 @@
1
- # Nuxt setup
1
+ # Nuxt common library
2
2
 
3
3
  Common packages, plus a small set of plugins, for OIT Vue frontend apps
4
4
 
5
+ # IMPORTANT
6
+
7
+ This package uses Nuxt 2, which has some... quirks when used with Node 18 or above.
8
+ To get a clean installation, you *must* use the `--legacy-peer-deps` flag for the *initial* installation:
9
+
10
+ - DELETE any existing `package-lock.json`
11
+ - Run `npm install --legacy-peer-deps`
12
+ - Bizarrely, you can now run `npm install` without that legacy flag; the resulting package-lock will be *different* than
13
+ if you run it without first running the legacy-flag version
14
+
15
+ One of the sub-dependencies of Nuxt 2 also requires a legacy OpenSSL environment flag for all nuxt commands.
16
+ In your package.json, for each script that runs the `nuxt` command, prepend
17
+ ```
18
+ cross-env NODE_OPTIONS=--openssl-legacy-provider
19
+ ```
20
+
21
+ For example:
22
+ ```json
23
+ "scripts": {
24
+ "dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider nuxt",
25
+ "build": "cross-env NODE_OPTIONS=--openssl-legacy-provider nuxt build",
26
+ "start": "cross-env NODE_OPTIONS=--openssl-legacy-provider nuxt start",
27
+ }
28
+ ```
29
+
30
+
5
31
  - ## AppDynamics
6
32
  Add AppDynamics monitoring.
7
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/nuxt-common",
3
- "version": "2.17.8",
3
+ "version": "2.17.9-beta.0",
4
4
  "description": "BYU Front End common module for Nuxt.js",
5
5
  "author": "BYU Apps Custom",
6
6
  "license": "Apache-2.0",
@@ -18,7 +18,7 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@babel/core": "~7.20.12",
21
+ "@babel/core": "~7.22.17",
22
22
  "@byuweb/browser-oauth": "~1.0.3",
23
23
  "@nuxt/types": "~2.16.0",
24
24
  "@nuxt/typescript-build": "~2.1.0",