Open Sergeant61 opened 5 months ago
I'm pretty sure this would be improved by https://github.com/meteor/meteor/pull/12675. The build is erroring part way through but Meteor is silently ignoring the error and trying to run the app. I've seen this before with Meteor 3.
Hello, I recently tried to try meteor 3.0 again, I cannot use svelte: compiler both in my own project and in zero installation. The error is as follows.
[[[[[ ~/works/svelte-deneme-302b4 ]]]]]
=> Started proxy.
=> Started HMR server.
=> Started MongoDB.
/Users/recepozen/.meteor/packages/meteor-tool/.3.0.2-beta.4.bf63lc.6u4vs++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/tools/runners/run-app.js:380
throw e;
^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received null
at Hash.update (node:internal/crypto/hash:115:11)
at /Users/recepozen/.meteor/packages/meteor-tool/.3.0.2-beta.4.bf63lc.6u4vs++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/tools/fs/tools/fs/watch.ts:329:28
at Array.forEach (<anonymous>)
at /Users/recepozen/.meteor/packages/meteor-tool/.3.0.2-beta.4.bf63lc.6u4vs++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/tools/fs/tools/fs/watch.ts:329:8
at CssOutputResource._get (/tools/isobuild/compiler-plugin.js:1002:19)
at ClientTarget._emitResources (/tools/isobuild/bundler.js:1301:19)
at /tools/isobuild/bundler.js:861:7
at Object.enterJob (/tools/utils/buildmessage.js:387:12)
at ClientTarget.make (/tools/isobuild/bundler.js:849:5)
at /tools/isobuild/bundler.js:3293:7
at /tools/isobuild/bundler.js:3452:25
at Object.capture (/tools/utils/buildmessage.js:282:5)
at bundle (/tools/isobuild/bundler.js:3274:18)
at bundleApp (/tools/runners/run-app.js:584:26)
at AppRunner._runOnce (/tools/runners/run-app.js:629:35)
at AppRunner._runApp (/tools/runners/run-app.js:951:23) {
code: 'ERR_INVALID_ARG_TYPE'
}```
I found the problem here and sent a pr for a solution. https://github.com/zodern/melte-compiler/pull/11
Hello @zodern, I recently migrated my project to Meteor 3.0 and encountered an issue. I found out where the problem is coming from, but what can we do as a solution?
I updated my application sequentially with the following commands:
meteor update --release 3.0-rc.2
meteor reset
rm -rf node_modules
rm -rf package-lock.json
meteor npm i
Then I ran my application.
meteor --settings settings.json --port 4100 --raw-logs
The application runs successfully, but on the client side, the application remains on a white screen and I get the following error in the log.
My observation is that when I remove the
svelte:compiler
setting frompackage.json
and add thestatic-html@1.3.3-rc300.2
package to the application, it works.Below is the content of the
packages
file andpackage.json
for the application.packages:
package.json: