LoginSignup
0
0

CodeSandBoxでNuxt3/Vuetify3環境を速攻作成

Last updated at Posted at 2023-10-17

前置き

テンプレートの選択

  • Nuxt3 Vuetify3 Templateを選択

start_from_template.png

[ハマり1] NodeJSバージョンへの警告発生

node_js_version.png

  • NodeJSバージョンを18にupgrade
  1. ref: https://codesandbox.io/docs/learn/environment/vm#configuring-nodejs-version
  2. .codesandbox/Dockerfileを作成し、以下を定義
    FROM node:18
    
  3. システム再起動のメッセージに従う。(Restarting)

[ハマり2]「defineNuxtConfig is not a function」 エラー

nuxtconfig_error.png

  • nuxt.config.tsの以下を修正
import { defineNuxtConfig } from "nuxt";
    ↓
import { defineNuxtConfig } from "nuxt/config";

無事起動に成功

  • 起動ターミナル(正常起動)

terminal_success.png

  • ブラウザアクセス(成功アクセス)
    access_success.png
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0