dart-native / dart_native

Write iOS&macOS&Android Code using Dart. This package liberates you from redundant glue code and low performance of Flutter Channel.
BSD 3-Clause "New" or "Revised" License
951 stars 77 forks source link

用codegen生成dart代码报错,请问该怎么操作啊 #45

Open SnowWolf817 opened 3 years ago

SnowWolf817 commented 3 years ago

Error: Cannot find module '/Users/zz/adult_flutter/lib/objc/DNObjectiveCConverter.js

at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15) at Function.Module._load (node:internal/modules/cjs/loader:769:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) at MessagePort. (node:internal/main/worker_thread:179:24) at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:459:20) at MessagePort.exports.emitMessage (node:internal/per_context/messageport:18:26) { code: 'MODULE_NOT_FOUND', requireStack: []

yulingtianxia commented 3 years ago

应该是 node 版本不对,升级 codegen 到 1.2 版本,node 版本用 v14 试试