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

外部使用用户收集 #140

Closed
zhangyuang opened this issue Dec 7, 2021 · 17 comments
Closed

外部使用用户收集 #140

zhangyuang opened this issue Dec 7, 2021 · 17 comments

Comments

@zhangyuang
Copy link
Owner

若您的应用使用本框架进行开发可以提issue或者pr加入到readme当中,也可以直接在本issue下补充回复

@zhangyuang zhangyuang pinned this issue Dec 7, 2021
@zhangyuang zhangyuang changed the title 使用用户 外部使用用户收集 Dec 7, 2021
@wizardpisces
Copy link

启动没问题,访问 http://127.0.0.1:3000/ 报错:

image

复现步骤:

$ npm init ssr-app my-ssr-project
选择 midway-vue3-ssr
$ cd my-ssr-project
$ npm install
$ npm run start:vite
$ 访问 http://127.0.0.1:3000/

[email protected]
[email protected]

@zhangyuang
Copy link
Owner Author

启动没问题,访问 http://127.0.0.1:3000/ 报错:

image

复现步骤:

$ npm init ssr-app my-ssr-project 选择 midway-vue3-ssr $ cd my-ssr-project $ npm install $ npm run start:vite $ 访问 http://127.0.0.1:3000/

[email protected] [email protected]

已知问题,临时解决方案升级node14,可以用nvm管理node版本

@wizardpisces
Copy link

好的感谢,这个会有长期方案修复的计划么

@zhangyuang
Copy link
Owner Author

如果你用react,现在就可以修复。vue3场景这里大概率是vite的问题导致的。需要研究下

@zhangyuang
Copy link
Owner Author

发现问题了,已修复,等会安装最新版本依赖即可

@wizardpisces
Copy link

修复的还挺快,具体是啥问题

@zhangyuang
Copy link
Owner Author

node12不支持optional chaining 需要额外处理

@zhangyuang
Copy link
Owner Author

最新版本已修复

@shaoyi-robin-zhou
Copy link

我是从原vite用户迁移过来的,然后要用windicss 的vite插件.在经过多次的调试后. 提两个建议,

  1. 在vite模式下开放extraJsOrder,不然加载不了windicss.ts.
    lQLPDhsKnsd6wb85zQQesITqtDnotZHbAeISyPnAOAA_1054_57
    2.对原插件的使用方式应该类似这样的文档补充,或者代码适配.

` js
const vitePluginWindicss =require("vite-plugin-windicss");

    let vitePluginW = vitePluginWindicss.default(windiConfig);

`

@zhangyuang
Copy link
Owner Author

zhangyuang commented Jan 10, 2022 via email

@cyber-echo
Copy link

怎么获取vuex的实例,需要在非组件的js中dispatch

@zhangyuang
Copy link
Owner Author

zhangyuang commented Apr 25, 2022 via email

@pakkery
Copy link

pakkery commented Aug 25, 2023

怎么引入element-plus

@fmx1151
Copy link

fmx1151 commented Feb 21, 2024

ssr-common-utils 今天更新的版本使用报错
Error: Cannot find module '@vue/server-renderer/index.js'
Require stack:

  • /usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/cwd.js
  • /usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/index.js
  • /usr/local/nano/sparkle-marketing/dist/main.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Function.resolve (node:internal/modules/cjs/helpers:125:19)
    at loadModuleFromFramework (/usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/cwd.js:292:20)
    at loadConfig (/usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/loadConfig.js:42:105)
    at Object. (/usr/local/nano/sparkle-marketing/node_modules/ssr-core/cjs/render.js:7:57)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/cwd.js',
    '/usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/index.js',
    '/usr/local/nano/sparkle-marketing/dist/main.js'
    ]
    }

@zhangyuang
Copy link
Owner Author

zhangyuang commented Feb 21, 2024 via email

@epoll-j
Copy link

epoll-j commented Feb 29, 2024

ssr-common-utils 今天更新的版本使用报错 Error: Cannot find module '@vue/server-renderer/index.js' Require stack:

  • /usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/cwd.js
  • /usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/index.js
  • /usr/local/nano/sparkle-marketing/dist/main.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Function.resolve (node:internal/modules/cjs/helpers:125:19)
    at loadModuleFromFramework (/usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/cwd.js:292:20)
    at loadConfig (/usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/loadConfig.js:42:105)
    at Object. (/usr/local/nano/sparkle-marketing/node_modules/ssr-core/cjs/render.js:7:57)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/cwd.js',
    '/usr/local/nano/sparkle-marketing/node_modules/ssr-common-utils/cjs/server/index.js',
    '/usr/local/nano/sparkle-marketing/dist/main.js'
    ]
    }

我有同样的问题,直接通过脚手架创建midway-react18-ssr的项目,运行就报这个错误了

@zhangyuang
Copy link
Owner Author

zhangyuang commented Feb 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants