Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve "tinacms" #4530

Open
3 tasks done
wslyvh opened this issue May 16, 2024 · 1 comment
Open
3 tasks done

Could not resolve "tinacms" #4530

wslyvh opened this issue May 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wslyvh
Copy link

wslyvh commented May 16, 2024

Describe the issue that you're seeing. Any Loom videos or screenshots usually help a lot!

I realize this is likely an issue with my local setup, but opening an issue for any tips/insights that could help resolve.`

Any (clean) installation of tina CMS is unable to resolve tinacms on start up.

> starter-basic@0.1.0 dev
> tinacms dev -c "next dev"

Starting Tina Dev Server

Build failed with 1 error:
tina/config.js:1:29: ERROR: Could not resolve "tinacms"

Unable to start dev server, please fix your Tina config / resolve any errors above and try again

Reproduction

https://github.com/wslyvh/tina-repro

Steps to reproduce

I've tried different ways to to set up and install a clean Tina solution, but all with the same result and error on dev/build.

  1. Forked the tina-barebones-starter https://github.com/tinacms/tina-barebones-starter
  2. Create new Nextjs site and then https://tina.io/docs/frameworks/nextjs/
  3. npx create-tina-app@latest

The reproduction link at https://github.com/wslyvh/tina-repro is from option # 3 and currently does NOT run for me.
e.g. npm install && npm run dev

Possible similar issue to #4396 - but cleaning up node_modules/tmp/folders, etc. did not solve it for me, unfortunately

For testing purposes, I tried to remove import { defineConfig } from "tinacms" and the defineConfig({ .. }), which does allow to start Tina (but obv. doesn't have a properly functioning CMS)

Any tips would be appreciated!

System Info

System:
    OS: Linux 6.8 Pop!_OS 22.04 LTS
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 28.33 GB / 39.02 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
    Yarn: 1.22.19 - ~/Code/tina-repro/node_modules/.bin/yarn
    npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
    bun: 1.0.26 - ~/.bun/bin/bun
  npmPackages:
    @tinacms/cli: ^1.5.34 => 1.5.34 
    tinacms: ^1.5.24 => 1.5.24

Validations

@wslyvh wslyvh added the bug Something isn't working label May 16, 2024
@JackDevAU
Copy link
Member

Hey @wslyvh

I just tried this from your repo in GitHub Codespaces and was able to reproduce your issue given your repo. I was able to fix the tinacms missing by deleting the yarn.lock file and re-running yarn.

Hope that helps!

From:

image

To:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants