{"id":16143912,"url":"https://github.com/callumacrae/ssr-vue-cli-test","last_synced_at":"2026-01-11T05:47:45.669Z","repository":{"id":37920054,"uuid":"215066942","full_name":"callumacrae/ssr-vue-cli-test","owner":"callumacrae","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T12:25:40.000Z","size":1552,"stargazers_count":0,"open_issues_count":25,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T21:07:57.773Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/callumacrae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-14T14:34:39.000Z","updated_at":"2019-10-14T14:52:46.000Z","dependencies_parsed_at":"2023-02-02T12:17:15.417Z","dependency_job_id":null,"html_url":"https://github.com/callumacrae/ssr-vue-cli-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callumacrae%2Fssr-vue-cli-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callumacrae%2Fssr-vue-cli-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callumacrae%2Fssr-vue-cli-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callumacrae%2Fssr-vue-cli-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/callumacrae","download_url":"https://codeload.github.com/callumacrae/ssr-vue-cli-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246802594,"owners_count":20836365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T00:10:36.174Z","updated_at":"2026-01-11T05:47:45.663Z","avatar_url":"https://github.com/callumacrae.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# broken ssr with untranspiled files\n\nThe @samknows/utils dependency (in this case, built from the `minimal-utils` directory) contains an untranspiled Vue file which is being imported in App.vue.\n\nThe rest of the project is a fairly standard vue-cli 3 project with SSR.\n\nTo build the project and start the server, run `npm run build`.\n\nWhen you navigate to http://localhost:8080, it works in the browser, but errors on the server.\n\nThe error I get on the server:\n\n```\nSSR error: /Users/callumacrae/Sites/samknows/ssr-vue-cli-test/node_modules/@samknows/utils/Test.vue:1\n(function (exports, require, module, __filename, __dirname) { \u003ctemplate\u003e\n                                                              ^\n\nSyntaxError: Unexpected token \u003c\n    at new Script (vm.js:79:7)\n    at createScript (vm.js:251:10)\n    at Object.runInThisContext (vm.js:303:10)\n    at Module._compile (internal/modules/cjs/loader.js:656:28)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)\n    at Module.load (internal/modules/cjs/loader.js:598:32)\n    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)\n    at Function.Module._load (internal/modules/cjs/loader.js:529:3)\n    at Module.require (internal/modules/cjs/loader.js:636:17)\n    at require (internal/modules/cjs/helpers.js:20:18)\n```\n\nIt looks like vue-loader isn't transpiling the file because it is coming from node_modules. I don't understand why it would transpile in the browser but not on the server!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallumacrae%2Fssr-vue-cli-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcallumacrae%2Fssr-vue-cli-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallumacrae%2Fssr-vue-cli-test/lists"}