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

[Feature Request]: please support deno #2073

Open
izumkineno opened this issue Jan 23, 2025 · 7 comments
Open

[Feature Request]: please support deno #2073

izumkineno opened this issue Jan 23, 2025 · 7 comments
Assignees
Labels
enhancement: pending triage Untriaged enhancement

Comments

@izumkineno
Copy link

What problem does this feature solve?

~/Desktop/izum_C/toolbox> deno i 01/23/2025 10:05:49 上午Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
┠─ npm:core-js@3.40.0

┠─ This may cause the packages to not work correctly.
┖─ To run lifecycle scripts, use the --allow-scripts flag with deno install:
deno install --allow-scripts=npm:core-js@3.40.0
~/Desktop/izum_C/toolbox> deno run dev 01/23/2025 10:05:54 上午Task dev farm
[ Farm ] Using config file at C:\Users\CEO\Desktop\izum_C\toolbox\farm.config.ts
[ building ] ⠂ transform (19) \0plugin-vue:export-helper
[ Farm ] Error: Failed to start the server
Caused by: Error: Can not resolve vue from src/main.ts.
Original error: None.

Potential Causes:

  1. The file that vue points to does not exist.
  2. Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm. io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
  3. If vue is a alias, make sure your alias config is correct.

Can not resolve vue from src/App.vue.
Original error: None.

Potential Causes:

  1. The file that vue points to does not exist.
  2. Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm. io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
  3. If vue is a alias, make sure your alias config is correct.

Can not resolve vue from src/App.vue.
Original error: None.

Potential Causes:

  1. The file that vue points to does not exist.
  2. Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm. io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
  3. If vue is a alias, make sure your alias config is correct.

Can not resolve vue from src/components/Greet.vue.
Original error: None.

Potential Causes:

  1. The file that vue points to does not exist.
  2. Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm. io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
  3. If vue is a alias, make sure your alias config is correct.

Can not resolve vue from src/components/Greet.vue.
Original error: None.

Potential Causes:

  1. The file that vue points to does not exist.
  2. Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm. io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
  3. If vue is a alias, make sure your alias config is correct.

Can not resolve vue from src/components/Greet.vue.
Original error: None.

Potential Causes:

  1. The file that vue points to does not exist.
  2. Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm. io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
  3. If vue is a alias, make sure your alias config is correct.

Can not resolve @tauri-apps/api/tauri from src/components/Greet.vue.
Original error: None.

Potential Causes:

  1. The file that @tauri-apps/api/tauri points to does not exist.
  2. Install it first if @tauri-apps/api/tauri is an dependency from node_modules, if you are using pnpm refer to [https://pnpm. io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
  3. If @tauri-apps/api/tauri is a alias, make sure your alias config is correct.

at logError (file:///C:/Users/CEO/Desktop/izum_C/toolbox/node_modules/.deno/@farmfe+core@1.6.6/node_modules/@farmfe/core/dist/server/error.js:74:15)
at Server.compile (file:///C:/Users/CEO/Desktop/izum_C/toolbox/node_modules/.deno/@farmfe+core@1.6.6/node_modules/@farmfe/core/dist/server/index.js:63:29)
at async Server. listen (file:///C:/Users/CEO/Desktop/izum_C/toolbox/node_modules/.deno/@farmfe+core@1.6.6/node_modules/@farmfe/core/dist/server/index.js:45:9)
at async start (file:///C:/Users/CEO/Desktop/izum_C/toolbox/node_modules/.deno/@farmfe+core@1.6.6/node_modules/@farmfe/core/dist/index.js:35:9)
at async handleAsyncOperationErrors (file:///C:/Users/CEO/Desktop/izum_C/toolbox/node_modules/.deno/@farmfe+cli@1.0.4/node_modules/@farmfe/cli/dist/utils.js:111:9)

What does the proposed API look like?

'deno run dev' works properly

@izumkineno izumkineno added the enhancement: pending triage Untriaged enhancement label Jan 23, 2025
@wre232114
Copy link
Member

wre232114 commented Jan 23, 2025

Looks like the dependencies under node_modules can not be found, are the dependencies installed?

@fu050409
Copy link
Member

Could you please provide your deno config file?

@izumkineno
Copy link
Author

Could you please provide your deno config file?

config file? I don't edit any config

@izumkineno
Copy link
Author

Looks like the dependencies under node_modules can not be found, do the dependencies installed?

 __  ,

.--()°'.' Welcome to Nushell,
'|, . ,' based on the nu language,
!-(\ where all data is structured!

Our Documentation is located at https://nushell.sh
Tweet us at @nu_shell
Learn how to remove this at: https://nushell.sh/book/configuration.html#remove-welcome-message

It's been this long since Nushell's first commit:
5yrs 8months 12days 13hrs 7mins 54secs 201ms 516µs 900ns
Startup Time: 51ms 453µs 100ns

~/Desktop/izum_C> npm create farm@latest 01/23/2025 02:07:06 下午

⚡ Welcome To Farm !

✔ Project name · farm-project
✔ Select a framework: · Vue3 - (https://vuejs.org/)

✔️ Template copied Successfully!

Initial Farm Project created successfully ✨ ✨

cd farm-project

npm install

npm run dev

/Desktop/izum_C> cd farm-project\ 01/23/2025 02:07:15 下午/Desktop/izum_C/farm-project> deno i 01/23/2025 02:07:20 下午Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
┠─ npm:core-js@3.40.0

┠─ This may cause the packages to not work correctly.
┖─ To run lifecycle scripts, use the --allow-scripts flag with deno install:
deno install --allow-scripts=npm:core-js@3.40.0
/Desktop/izum_C/farm-project> deno install --allow-scripts=npm:core-js@3.40.0 01/23/2025 02:07:25 下午/Desktop/izum_C/farm-project> deno i 01/23/2025 02:07:31 下午
~/Desktop/izum_C/farm-project> deno run dev 01/23/2025 02:07:36 下午
Task dev farm start
[ Farm ] Using config file at C:\Users\CEO\Desktop\izum_C\farm-project\farm.config.ts
[ building ] ⠄ transform (19) src/components/HelloWorld.vue?vue&type=style&index=0&scoped=e17ea971&lang.css [ Farm ] Error: Failed to start the server
Caused by: Error: Can not resolve vue from src/index.ts.
Original error: None.

Potential Causes:
1.The file that vue points to does not exist.
2.Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm.io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
3. If vue is a alias, make sure your alias config is correct.

Can not resolve vue from src/App.vue.
Original error: None.

Potential Causes:
1.The file that vue points to does not exist.
2.Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm.io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
3. If vue is a alias, make sure your alias config is correct.

Can not resolve vue from src/App.vue.
Original error: None.

Potential Causes:
1.The file that vue points to does not exist.
2.Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm.io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
3. If vue is a alias, make sure your alias config is correct.

Can not resolve vue from src/components/HelloWorld.vue.
Original error: None.

Potential Causes:
1.The file that vue points to does not exist.
2.Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm.io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
3. If vue is a alias, make sure your alias config is correct.
Can not resolve vue from src/components/HelloWorld.vue.
Original error: None.

Potential Causes:
1.The file that vue points to does not exist.
2.Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm.io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
3. If vue is a alias, make sure your alias config is correct.

Can not resolve vue from src/components/HelloWorld.vue.
Original error: None.

Potential Causes:
1.The file that vue points to does not exist.
2.Install it first if vue is an dependency from node_modules, if you are using pnpm refer to [https://pnpm.io/faq#pnpm-does-not-work-with-your-project-here] for solutions.
3. If vue is a alias, make sure your alias config is correct.

at logError (file:///C:/Users/CEO/Desktop/izum_C/farm-project/node_modules/.deno/@farmfe+core@1.6.6/node_modules/@farmfe/core/dist/server/error.js:74:15)
at Server.compile (file:///C:/Users/CEO/Desktop/izum_C/farm-project/node_modules/.deno/@farmfe+core@1.6.6/node_modules/@farmfe/core/dist/server/index.js:63:29)
at async Server.listen (file:///C:/Users/CEO/Desktop/izum_C/farm-project/node_modules/.deno/@farmfe+core@1.6.6/node_modules/@farmfe/core/dist/server/index.js:45:9)
at async start (file:///C:/Users/CEO/Desktop/izum_C/farm-project/node_modules/.deno/@farmfe+core@1.6.6/node_modules/@farmfe/core/dist/index.js:35:9)
at async handleAsyncOperationErrors (file:///C:/Users/CEO/Desktop/izum_C/farm-project/node_modules/.deno/@farmfe+cli@1.0.4/node_modules/@farmfe/cli/dist/utils.js:111:9)

~/Desktop/izum_C/farm-project> ls 1 01/23/2025 02:07:41 下午╭────┬────────────────────┬──────┬─────────┬───────────────╮
│ # │ name │ type │ size │ modified │
├────┼────────────────────┼──────┼─────────┼───────────────┤
│ 0 │ .gitignore │ file │ 257 B │ 6 minutes ago │
│ 1 │ README.md │ file │ 438 B │ 6 minutes ago │
│ 2 │ deno.lock │ file │ 81.1 KB │ 6 minutes ago │
│ 3 │ farm.config.ts │ file │ 147 B │ 6 minutes ago │
│ 4 │ index.html │ file │ 349 B │ 6 minutes ago │
│ 5 │ node_modules │ dir │ 4.1 KB │ 6 minutes ago │
│ 6 │ package.json │ file │ 418 B │ 6 minutes ago │
│ 7 │ public │ dir │ 0 B │ 6 minutes ago │
│ 8 │ src │ dir │ 4.1 KB │ 6 minutes ago │
│ 9 │ tsconfig.json │ file │ 667 B │ 6 minutes ago │
│ 10 │ tsconfig.node.json │ file │ 244 B │ 6 minutes ago │
╰────┴────────────────────┴──────┴─────────┴───────────────╯
~/Desktop/izum_C/farm-project>

@izumkineno
Copy link
Author

this is an rsbuild project with the same command in the same environment
__ ,
.--()°'.' Welcome to Nushell,
'|, . ,' based on the nu language,
!-(\ where all data is structured!

Please join our Discord community at https://discord.gg/NtAbbGn
Our GitHub repository is at https://github.com/nushell/nushell
Our Documentation is located at https://nushell.sh
Tweet us at @nu_shell
Learn how to remove this at: https://nushell.sh/book/configuration.html#remove-welcome-message

It's been this long since Nushell's first commit:
5yrs 8months 12days 13hrs 12mins 952ms 938µs 200ns

~/Desktop/izum_C> npm create rsbuild@latest 01/23/2025 02:11:12 下午

◆ Create Rsbuild Project

◇ Project name or path

◇ Select framework
│ Vue 3

◇ Select language
│ TypeScript

◇ Select additional tools (Use to select, to continue)
│ none

◇ Next steps ─────────╮
│ │
│ cd rsbuild_project │
│ npm install │
│ npm run dev │
│ │
├──────────────────────╯

└ Done.

/Desktop/izum_C> cd rsbuild_project\ 01/23/2025 02:11:40 下午/Desktop/izum_C/rsbuild_project> deno i 01/23/2025 02:11:42 下午Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
┠─ npm:core-js@3.40.0

┠─ This may cause the packages to not work correctly.
┖─ To run lifecycle scripts, use the --allow-scripts flag with deno install:
deno install --allow-scripts=npm:core-js@3.40.0
~/Desktop/izum_C/rsbuild_project> deno run dev 01/23/2025 02:11:46 下午Task dev rsbuild dev --open

Rsbuild v1.2.1

➜ Network: http://172.16.29.1:3000/
➜ Network: http://172.16.138.1:3000/
➜ Local: http://localhost:3000/
➜ Network: http://192.168.1.100:3000/
➜ press h + enter to show shortcuts

start Building...
ready Built in 0.26 s (web)

I am curious what is the reason why deno cannot run in the farm project

@wre232114
Copy link
Member

wre232114 commented Jan 24, 2025

We'll take a look, thanks for reporting issues!

@shulandmimi shulandmimi self-assigned this Jan 24, 2025
@shulandmimi
Copy link
Member

@izumkineno I tried to follow your reproduction steps but the issue did not occur. Could you please provide your environment information and upload your project?

PS C:\path\to\_2073> npx envinfo --system --npmPackages @farmfe/core --npmPackages @farmfe/cli --binaries --browsers

  System:
    OS: Windows 11 10.0.22621
    CPU: (32) x64 Intel(R) Core(TM) i9-14900HX
    Memory: 17.09 GB / 31.73 GB
  Binaries:
    Node: 21.7.3 - ~\AppData\Local\fnm_multishells\17856_1737864618713\node.EXE
    npm: 10.5.0 - ~\AppData\Local\fnm_multishells\17856_1737864618713\npm.CMD
    pnpm: 9.4.0 - ~\AppData\Local\fnm_multishells\17856_1737864618713\pnpm.CMD
  Browsers:
    Edge: Spartan (44.22621.2134.0), Chromium (127.0.2651.86)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @farmfe/cli: 1.0.4 => 1.0.4 
    @farmfe/core: 1.6.6 => 1.6.6 

PS C:\path\to\_2073> deno -v
deno 2.1.7
PS C:\path\to\_2073> deno run dev  
Task dev farm start
[ Farm ] Using config file at C:\path\to\_2073\farm.config.ts

 ϟ  Farm  v1.6.6
 ✓  Ready in 107ms ⚡️FULL EXTREME! 

[ Farm ] > Local:   http://localhost:9000/

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

No branches or pull requests

4 participants