And then, i start thinking, that all problems goes from chakra-ui integrationβ¦
I tried to do it, perfect guide here https://chakra-ui.com/guides/getting-started/remix-guide
(i found some other examples with chakra, but only for vercel... all my current stack is on cf, very want to make it work on workers....
but i encounter another problems, when i did everything in thus guideβ¦
Because of some packages dependencies (dotenv and some other packages) when i trying to npm run start i got next errorsβ¦
Do you have any ideas how can it be fixed?
In old workers version in webpack conf i can simply resolve all modules like fs, stream etc to null β¦ but what I can do in this situation, i tried some options but i didnβt find no real cureβ¦ Thanks in advance if you have any thoughts β¦
β [ERROR] Could not resolve "stream"
node_modules/through/index.js:1:21:
1 β var Stream = require('stream')
β΅ ~~~~~~~~
The package "stream" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "fs"
node_modules/dotenv/lib/main.js:24:19:
24 β const fs = require('fs')
β΅ ~~~~
The package "fs" wasn't found on the file system but is built into node. Are
you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "stream"
node_modules/multipipe/index.js:7:26:
7 β var PassThrough = require('stream').PassThrough;
β΅ ~~~~~~~~
The package "stream" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "path"
node_modules/dotenv/lib/main.js:25:21:
25 β const path = require('path')
β΅ ~~~~~~
The package "path" wasn't found on the file system but is built into node. Are
you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "stream"
node_modules/readable-stream/readable.js:1:21:
1 β var Stream = require('stream'); // hack to fix a circular dependenc...
β΅ ~~~~~~~~
The package "stream" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "os"
node_modules/dotenv/lib/main.js:26:19:
26 β const os = require('os')
β΅ ~~~~
The package "os" wasn't found on the file system but is built into node. Are
you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "buffer"
node_modules/readable-stream/lib/_stream_writable.js:29:21:
29 β var Buffer = require('buffer').Buffer;
β΅ ~~~~~~~~
The package "buffer" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "buffer"
node_modules/readable-stream/lib/_stream_readable.js:30:21:
30 β var Buffer = require('buffer').Buffer;
β΅ ~~~~~~~~
The package "buffer" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "events"
node_modules/readable-stream/lib/_stream_readable.js:35:17:
35 β var EE = require('events').EventEmitter;
β΅ ~~~~~~~~
The package "events" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "stream"
node_modules/readable-stream/lib/_stream_readable.js:43:21:
43 β var Stream = require('stream');
β΅ ~~~~~~~~
The package "stream" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "buffer"
node_modules/core-util-is/lib/util.js:103:27:
103 β exports.isBuffer = require('buffer').Buffer.isBuffer;
β΅ ~~~~~~~~
The package "buffer" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "events"
node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/stream-browser.js:1:25:
1 β module.exports = require('events').EventEmitter;
β΅ ~~~~~~~~
The package "events" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "buffer"
node_modules/safe-buffer/index.js:2:21:
2 β var buffer = require('buffer')
β΅ ~~~~~~~~
The package "buffer" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "events"
node_modules/duplexer2/node_modules/readable-stream/lib/_stream_readable.js:42:17:
42 β var EE = require('events').EventEmitter;
β΅ ~~~~~~~~
The package "events" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "stream"
node_modules/readable-stream/lib/_stream_writable.js:40:21:
40 β var Stream = require('stream');
β΅ ~~~~~~~~
The package "stream" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
β [ERROR] Could not resolve "buffer"
node_modules/string_decoder/index.js:22:21:
22 β var Buffer = require('buffer').Buffer;
β΅ ~~~~~~~~
The package "buffer" wasn't found on the file system but is built into node.
Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
Unknown error caught during build: Error: Build failed with 16 errors:
node_modules/core-util-is/lib/util.js:103:27: ERROR: Could not resolve "buffer"
node_modules/dotenv/lib/main.js:24:19: ERROR: Could not resolve "fs"
node_modules/dotenv/lib/main.js:25:21: ERROR: Could not resolve "path"
node_modules/dotenv/lib/main.js:26:19: ERROR: Could not resolve "os"
node_modules/duplexer2/node_modules/readable-stream/lib/_stream_readable.js:42:17: ERROR: Could not resolve "events"
...
at failureErrorWithLog (/Users/havok/Work/lawsvc/packages/ccremix/node_modules/esbuild/lib/main.js:1601:15)
at /Users/havok/Work/lawsvc/packages/ccremix/node_modules/esbuild/lib/main.js:1247:28
at runOnEndCallbacks (/Users/havok/Work/lawsvc/packages/ccremix/node_modules/esbuild/lib/main.js:1160:65)
at buildResponseToResult (/Users/havok/Work/lawsvc/packages/ccremix/node_modules/esbuild/lib/main.js:1245:7)
at /Users/havok/Work/lawsvc/packages/ccremix/node_modules/esbuild/lib/main.js:1354:14