Correct usage of Query Data in Remix

{
  "platform": "react",
  "code": {
    "lang": "ts",
    "scheme": "blackbox",
    "reactRuntime": "classic"
  },
  "style": {
    "scheme": "css-modules",
    "defaultStyleCssFilePath": "plasmic/plasmic__default_style.css"
  },
  "images": {
    "scheme": "files"
  },
  "tokens": {
    "scheme": "theo",
    "tokensFilePath": "plasmic-tokens.theo.json"
  },
  "srcDir": "./app/_plasmic",
  "defaultPlasmicDir": "./plasmic",
  "projects": [
    {
      "projectId": "rCLMVBFoWZ9ZZdaRyfVPoo",
      "version": ">0.0.0",
      "projectApiToken": "qJV08Pw7W3VlqLZ16jsWBryXV6yA8wzFOEyGXeRZSXKgmqkO6x65EuiMbhflvVXJTX0VqW55qwj3gnsbqu6CoA",
      "components": [],
      "icons": [],
      "images": [],
      "codeComponents": [],
      "cssFilePath": "",
      "indirect": false,
      "globalContextsFilePath": "",
      "projectName": ""
    }
  ],
  "globalVariants": {
    "variantGroups": []
  },
  "wrapPagesWithGlobalContexts": false,
  "cliVersion": "0.1.302",
  "$schema": "<https://unpkg.com/@plasmicapp/cli@0.1.302/dist/plasmic.schema.json>"
}

ah I meant the generated plasmic.json and not plasmic-empty.json; plasmic.json should’ve been generated after you did yarn plasmic-sync

that’s what it is - hmm lemme debug

hmm it looks empty though…

i see so i’m getting an error - saying it wasn’t registered with an importPath

so i need to set something up so i can get it rendering so i can get past this

hmm yes this loop is pretty painful :confused: I guess remix requires the whole app to build even in dev mode

you can probably do yarn plasmic-clean to remove the plasmic files, comment out references to app/_plasmic and then run the dev server, which should now build; and hit the host page from the Plasmic project to update the necessary metadata

uh oh -

You can still use those as the displayName but you need to specify the importName for what those components are actually called in code when they are imported. Like to import Shopfy.Collection, it’s import { WHAT } from "../import-path"